forked from OSchip/llvm-project
[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
This commit is contained in:
parent
8d33a085c3
commit
88feedd7c7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue