[sanitizer] Fix libcxx cache existence check in symbolizer build (#149249)

The script incorrectly checked ${LLVM_BUILD}/build.ninja to determine if
cached libcxx is available, while it should be checking the actual
libcxx build directory at ${LIBCXX_BUILD}/build.ninja.
This commit is contained in:
int-zjt 2025-07-23 03:18:04 +08:00 committed by GitHub
parent 0e00bc4f83
commit 006c0c8767
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,7 +87,7 @@ AR="${AR}" CC="${CC}" CFLAGS="$FLAGS -Wno-deprecated-non-prototype" RANLIB=/bin/
make -j libz.a
# Build and install libcxxabi and libcxx.
if [[ ! -f ${LLVM_BUILD}/build.ninja ]]; then
if [[ ! -f ${LIBCXX_BUILD}/build.ninja ]]; then
rm -rf "${LIBCXX_BUILD}" "${LIBCXX_INSTALL}"
mkdir -p ${LIBCXX_BUILD} ${LIBCXX_INSTALL}
cd ${LIBCXX_BUILD}