summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2019-10-28 10:21:01 -0700
committerEvgenii Stepanov <eugenis@google.com>2019-10-28 10:32:46 -0700
commit3f345732b4f88e8d0d302470929cbe33d65a7435 (patch)
tree70b57f1a953d089fe667b904549fddee7aeb0474
parent7c860698208aee32df1883601b94924fa4a3d531 (diff)
downloadbcm5719-llvm-3f345732b4f88e8d0d302470929cbe33d65a7435.tar.gz
bcm5719-llvm-3f345732b4f88e8d0d302470929cbe33d65a7435.zip
Add missing lld checks in sanitizer tests.
Do not add an lld dependency when this target does not exist. In this case the system installation of lld is used (or whatever is detected with -fuse-ld=lld by default).
-rw-r--r--compiler-rt/test/asan/CMakeLists.txt2
-rw-r--r--compiler-rt/test/cfi/CMakeLists.txt2
-rw-r--r--compiler-rt/test/fuzzer/CMakeLists.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/asan/CMakeLists.txt b/compiler-rt/test/asan/CMakeLists.txt
index 79e34a01619..e67a0e86997 100644
--- a/compiler-rt/test/asan/CMakeLists.txt
+++ b/compiler-rt/test/asan/CMakeLists.txt
@@ -30,7 +30,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)
+ if(NOT APPLE AND COMPILER_RT_HAS_LLD AND TARGET lld)
list(APPEND ASAN_TEST_DEPS lld)
endif()
endif()
diff --git a/compiler-rt/test/cfi/CMakeLists.txt b/compiler-rt/test/cfi/CMakeLists.txt
index 9b6ef0f67cb..a787ecdb38a 100644
--- a/compiler-rt/test/cfi/CMakeLists.txt
+++ b/compiler-rt/test/cfi/CMakeLists.txt
@@ -86,7 +86,7 @@ if(NOT COMPILER_RT_STANDALONE_BUILD)
)
endif()
endif()
- if(NOT APPLE AND COMPILER_RT_HAS_LLD)
+ if(NOT APPLE AND COMPILER_RT_HAS_LLD AND TARGET lld)
list(APPEND CFI_TEST_DEPS
lld
)
diff --git a/compiler-rt/test/fuzzer/CMakeLists.txt b/compiler-rt/test/fuzzer/CMakeLists.txt
index 25bdcd2f0d9..5618096173a 100644
--- a/compiler-rt/test/fuzzer/CMakeLists.txt
+++ b/compiler-rt/test/fuzzer/CMakeLists.txt
@@ -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)
+ if(NOT APPLE AND COMPILER_RT_HAS_LLD AND TARGET lld)
list(APPEND LIBFUZZER_TEST_DEPS lld)
endif()
endif()
OpenPOWER on IntegriCloud