summaryrefslogtreecommitdiff
path: root/lib/msan
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-12-12 01:20:52 +0000
committerPetr Hosek <phosek@chromium.org>2017-12-12 01:20:52 +0000
commiteff015538b70adcb9f3976ac8d2181513e28c1c1 (patch)
tree8ba95e68041087146a1ae57a941f47da8af4e706 /lib/msan
parent9b3f7c3d180b156605b9def01ce16465baee9c1c (diff)
[CMake] Support runtimes and monorepo layouts when looking for libcxx
This also slightly refactors the code that's checking the directory presence which allows eliminating one unnecessary variable. Differential Revision: https://reviews.llvm.org/D40637 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan')
-rw-r--r--lib/msan/tests/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msan/tests/CMakeLists.txt b/lib/msan/tests/CMakeLists.txt
index 04428958e..b46023178 100644
--- a/lib/msan/tests/CMakeLists.txt
+++ b/lib/msan/tests/CMakeLists.txt
@@ -122,7 +122,7 @@ macro(add_msan_tests_for_arch arch kind cflags)
endmacro()
# We should only build MSan unit tests if we can build instrumented libcxx.
-if(COMPILER_RT_CAN_EXECUTE_TESTS AND COMPILER_RT_HAS_LIBCXX_SOURCES)
+if(COMPILER_RT_CAN_EXECUTE_TESTS AND COMPILER_RT_LIBCXX_PATH)
foreach(arch ${MSAN_SUPPORTED_ARCH})
get_target_flags_for_arch(${arch} TARGET_CFLAGS)
set(LIBCXX_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/../libcxx_msan_${arch})