diff options
| author | Kelvin Li <kli@ca.ibm.com> | 2019-11-05 13:44:46 -0500 |
|---|---|---|
| committer | Kelvin Li <kli@ca.ibm.com> | 2019-11-05 16:42:30 -0500 |
| commit | 1e1ae46595b1844e73b128d09739bbc57ea36f16 (patch) | |
| tree | 501136d0ffaeb2ca8298389b124f8f6b6e356c67 /compiler-rt/cmake/Modules | |
| parent | 4b698645d307d1821a0e805de51d14f71d12856f (diff) | |
| download | bcm5719-llvm-1e1ae46595b1844e73b128d09739bbc57ea36f16.tar.gz bcm5719-llvm-1e1ae46595b1844e73b128d09739bbc57ea36f16.zip | |
[CMake] Prevent adding lld to test dependency (TEST_DEPS) when lld project is not built
D69405 causes failure if running LIT when the compiler was built without lld.
Patch by Anh Tuyen Tran (anhtuyen)
Differential Revision: https://reviews.llvm.org/D69685
Diffstat (limited to 'compiler-rt/cmake/Modules')
| -rw-r--r-- | compiler-rt/cmake/Modules/AddCompilerRT.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake index b87ab6a91d4..bcb16584ff7 100644 --- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake +++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake @@ -465,7 +465,7 @@ 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) + if(NOT COMPILER_RT_STANDALONE_BUILD AND COMPILER_RT_HAS_LLD AND TARGET 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) |

