diff options
author | Alex Lorenz <arphaman@gmail.com> | 2018-07-16 19:41:49 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2018-07-16 19:41:49 +0000 |
commit | c8a18c408aea76b72619019f92f49af0b33e56ce (patch) | |
tree | c0f2046c26e1a1ea9350280c0edb1ed91db498b8 /test | |
parent | 1a045aa98408e39404f4186a3fb3d18bdc750522 (diff) |
[cmake][libFuzzer] fixup r337193 to ensure msan/dfsan are not added
to test deps for libfuzzer when they're not supported by the platform
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@337203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/fuzzer/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/fuzzer/CMakeLists.txt b/test/fuzzer/CMakeLists.txt index 4cec80774..ef46ec4a9 100644 --- a/test/fuzzer/CMakeLists.txt +++ b/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() |