mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 17:16:06 +00:00
[compiler-rt] Fix lld dependency for sanitizers
TARGET lld is always false there.
This commit is contained in:
parent
44ba8c691c
commit
921c548f11
@ -26,7 +26,7 @@ endmacro()
|
||||
set(ASAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
|
||||
if(NOT COMPILER_RT_STANDALONE_BUILD)
|
||||
list(APPEND ASAN_TEST_DEPS asan)
|
||||
if(NOT APPLE AND COMPILER_RT_HAS_LLD AND TARGET lld)
|
||||
if(NOT APPLE AND COMPILER_RT_HAS_LLD AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)
|
||||
list(APPEND ASAN_TEST_DEPS lld)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -7,7 +7,7 @@ if (NOT COMPILER_RT_STANDALONE_BUILD)
|
||||
if (COMPILER_RT_HAS_DFSAN)
|
||||
list(APPEND LIBFUZZER_TEST_DEPS dfsan)
|
||||
endif()
|
||||
if(NOT APPLE AND COMPILER_RT_HAS_LLD AND TARGET lld)
|
||||
if(NOT APPLE AND COMPILER_RT_HAS_LLD AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)
|
||||
list(APPEND LIBFUZZER_TEST_DEPS lld)
|
||||
endif()
|
||||
endif()
|
||||
|
@ -23,10 +23,8 @@ endforeach()
|
||||
set(HWASAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
|
||||
if(NOT COMPILER_RT_STANDALONE_BUILD)
|
||||
list(APPEND HWASAN_TEST_DEPS hwasan)
|
||||
if(COMPILER_RT_HAS_LLD)
|
||||
if (TARGET lld)
|
||||
list(APPEND HWASAN_TEST_DEPS lld)
|
||||
endif()
|
||||
if(COMPILER_RT_HAS_LLD AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)
|
||||
list(APPEND HWASAN_TEST_DEPS lld)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -8,7 +8,7 @@ macro(add_ubsan_testsuite test_mode sanitizer arch lld thinlto)
|
||||
set(CONFIG_NAME ${UBSAN_LIT_TEST_MODE})
|
||||
if (${lld})
|
||||
set(CONFIG_NAME ${CONFIG_NAME}-lld)
|
||||
if (TARGET lld)
|
||||
if ("lld" IN_LIST LLVM_ENABLE_PROJECTS)
|
||||
list(APPEND UBSAN_TEST_DEPS lld)
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user