Skip to content

Commit 14b2b67

Browse files
committed
Fix locating of COMPILER_RT_LIBCXX_PATH
COMPILER_RT_LIBCXX_PATH is required for msan unittests.
1 parent 1fbb6d8 commit 14b2b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ if(COMPILER_RT_USE_LIBCXX)
672672
# Don't use libcxx if LLVM_ENABLE_PROJECTS does not enable it.
673673
set(COMPILER_RT_LIBCXX_PATH ${LLVM_EXTERNAL_LIBCXX_SOURCE_DIR})
674674
set(COMPILER_RT_LIBCXXABI_PATH ${LLVM_EXTERNAL_LIBCXXABI_SOURCE_DIR})
675-
else()
675+
endif()
676+
if(NOT IS_DIRECTORY ${COMPILER_RT_LIBCXX_PATH})
676677
foreach(path IN ITEMS ${LLVM_MAIN_SRC_DIR}/projects/libcxx
677678
${LLVM_MAIN_SRC_DIR}/runtimes/libcxx
678679
${LLVM_MAIN_SRC_DIR}/../libcxx

0 commit comments

Comments
 (0)