[compiler-rt] r337203 - [cmake][libFuzzer] fixup r337193 to ensure msan/dfsan are not added
Alex Lorenz via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 16 12:41:49 PDT 2018
Author: arphaman
Date: Mon Jul 16 12:41:49 2018
New Revision: 337203
URL: http://llvm.org/viewvc/llvm-project?rev=337203&view=rev
Log:
[cmake][libFuzzer] fixup r337193 to ensure msan/dfsan are not added
to test deps for libfuzzer when they're not supported by the platform
Modified:
compiler-rt/trunk/test/fuzzer/CMakeLists.txt
Modified: compiler-rt/trunk/test/fuzzer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/CMakeLists.txt?rev=337203&r1=337202&r2=337203&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/fuzzer/CMakeLists.txt Mon Jul 16 12:41:49 2018
@@ -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()
More information about the llvm-commits
mailing list