From: Petr Hosek Date: Thu, 11 Jun 2020 03:00:53 +0000 (-0700) Subject: [CMake][compiler-rt] Only set lld as available when it was built X-Git-Tag: llvmorg-12-init~1547 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cf1d04484344be52ada8178e41d18fd15a9b880c;p=platform%2Fupstream%2Fllvm.git [CMake][compiler-rt] Only set lld as available when it was built The `-fuse-ld=lld` check might succeed because there's a system lld, but that lld may be out-of-date which would cause any tests that attempt to use for LTO fail. This was observed on some of the bots. Differential Revision: https://reviews.llvm.org/D81629 --- diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt index 8619b6e..fa62814 100644 --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -535,8 +535,6 @@ else() set(COMPILER_RT_LLD_PATH ${LLVM_MAIN_SRC_DIR}/../lld) if(EXISTS ${COMPILER_RT_LLD_PATH}/ AND LLVM_TOOL_LLD_BUILD) set(COMPILER_RT_HAS_LLD TRUE) - else() - set(COMPILER_RT_HAS_LLD ${COMPILER_RT_HAS_FUSE_LD_LLD_FLAG}) endif() endif() pythonize_bool(COMPILER_RT_HAS_LLD)