summaryrefslogtreecommitdiffstats
path: root/compiler-rt/cmake/Modules
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-08-27 02:06:34 +0000
committerVitaly Buka <vitalybuka@google.com>2019-08-27 02:06:34 +0000
commit4240c13274ea0b6b9b2499ee7f610b0fca192a17 (patch)
tree96244a4674d7d992028f321eaa50ee89729333f8 /compiler-rt/cmake/Modules
parent58e67b8aa38c80df361374072d21882930662f8b (diff)
downloadbcm5719-llvm-4240c13274ea0b6b9b2499ee7f610b0fca192a17.tar.gz
bcm5719-llvm-4240c13274ea0b6b9b2499ee7f610b0fca192a17.zip
[sanitizer] Add lld into dependency of sanitizer_common unittests
llvm-svn: 370007
Diffstat (limited to 'compiler-rt/cmake/Modules')
-rw-r--r--compiler-rt/cmake/Modules/AddCompilerRT.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
index 322e4221a81..7c9505e66ce 100644
--- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake
+++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
@@ -465,6 +465,11 @@ function(add_compiler_rt_test test_suite test_name arch)
set(TEST_LINK_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TEST_LINK_FLAGS}")
separate_arguments(TEST_LINK_FLAGS)
endif()
+ if(NOT COMPILER_RT_STANDALONE_BUILD AND COMPILER_RT_HAS_LLD)
+ # CMAKE_EXE_LINKER_FLAGS may contain -fuse=lld
+ # FIXME: -DLLVM_ENABLE_LLD=ON and -DLLVM_ENABLE_PROJECTS without lld case.
+ list(APPEND TEST_DEPS lld)
+ endif()
add_custom_command(
OUTPUT "${output_bin}"
COMMAND ${COMPILER_RT_TEST_COMPILER} ${TEST_OBJECTS} -o "${output_bin}"
OpenPOWER on IntegriCloud