summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2018-07-16 19:41:49 +0000
committerAlex Lorenz <arphaman@gmail.com>2018-07-16 19:41:49 +0000
commit88feedd7c7564fd2792a6499ad9c3312695a949a (patch)
tree8ae7bd22fafb488232988a755638f89a3a08aeb9
parent8d33a085c363a5f4288c7866fe35d48417e2731d (diff)
downloadbcm5719-llvm-88feedd7c7564fd2792a6499ad9c3312695a949a.tar.gz
bcm5719-llvm-88feedd7c7564fd2792a6499ad9c3312695a949a.zip
[cmake][libFuzzer] fixup r337193 to ensure msan/dfsan are not added
to test deps for libfuzzer when they're not supported by the platform llvm-svn: 337203
-rw-r--r--compiler-rt/test/fuzzer/CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler-rt/test/fuzzer/CMakeLists.txt b/compiler-rt/test/fuzzer/CMakeLists.txt
index 4cec80774c9..ef46ec4a906 100644
--- a/compiler-rt/test/fuzzer/CMakeLists.txt
+++ b/compiler-rt/test/fuzzer/CMakeLists.txt
@@ -1,6 +1,12 @@
set(LIBFUZZER_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
if (NOT COMPILER_RT_STANDALONE_BUILD)
- list(APPEND LIBFUZZER_TEST_DEPS fuzzer asan msan ubsan dfsan)
+ list(APPEND LIBFUZZER_TEST_DEPS fuzzer asan ubsan)
+ if (COMPILER_RT_HAS_MSAN)
+ list(APPEND LIBFUZZER_TEST_DEPS msan)
+ endif()
+ if (COMPILER_RT_HAS_DFSAN)
+ list(APPEND LIBFUZZER_TEST_DEPS dfsan)
+ endif()
if(NOT APPLE AND COMPILER_RT_HAS_LLD)
list(APPEND LIBFUZZER_TEST_DEPS lld)
endif()
OpenPOWER on IntegriCloud