We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b6aec7 commit e7853a5Copy full SHA for e7853a5
compiler-rt/cmake/Modules/AddCompilerRT.cmake
@@ -465,7 +465,7 @@ function(add_compiler_rt_test test_suite test_name arch)
465
set(TEST_LINK_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${TEST_LINK_FLAGS}")
466
separate_arguments(TEST_LINK_FLAGS)
467
endif()
468
- if(NOT COMPILER_RT_STANDALONE_BUILD AND COMPILER_RT_HAS_LLD AND TARGET lld)
+ if(NOT COMPILER_RT_STANDALONE_BUILD AND COMPILER_RT_HAS_LLD AND "lld" IN_LIST LLVM_ENABLE_PROJECTS)
469
# CMAKE_EXE_LINKER_FLAGS may contain -fuse=lld
470
# FIXME: -DLLVM_ENABLE_LLD=ON and -DLLVM_ENABLE_PROJECTS without lld case.
471
list(APPEND TEST_DEPS lld)
0 commit comments