summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/hwasan
diff options
context:
space:
mode:
authorEvgenii Stepanov <eugenis@google.com>2019-10-24 13:14:03 -0700
committerEvgenii Stepanov <eugenis@google.com>2019-10-24 14:46:10 -0700
commita1817996fa869acff181e5c8ea624020dcc1e88e (patch)
tree1fd9befde895e9ddd1abd48f478c5b16e44e4719 /compiler-rt/test/hwasan
parent55c223a7ed522293cf9995d07d348368c345d1f2 (diff)
downloadbcm5719-llvm-a1817996fa869acff181e5c8ea624020dcc1e88e.tar.gz
bcm5719-llvm-a1817996fa869acff181e5c8ea624020dcc1e88e.zip
Fix lld detection in standalone compiler-rt.
Summary: Right now all hwasan tests on Android are silently disabled because they require "has_lld" and standalone compiler-rt can not (and AFAIK was never able to) set it. Reviewers: pcc Subscribers: dberris, mgorny, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D69405
Diffstat (limited to 'compiler-rt/test/hwasan')
-rw-r--r--compiler-rt/test/hwasan/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/test/hwasan/CMakeLists.txt b/compiler-rt/test/hwasan/CMakeLists.txt
index 541604037e1..f6bdd510ad3 100644
--- a/compiler-rt/test/hwasan/CMakeLists.txt
+++ b/compiler-rt/test/hwasan/CMakeLists.txt
@@ -24,7 +24,9 @@ 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)
- list(APPEND HWASAN_TEST_DEPS lld)
+ if (TARGET lld)
+ list(APPEND HWASAN_TEST_DEPS lld)
+ endif()
endif()
endif()
OpenPOWER on IntegriCloud