From: Evgenii Stepanov Date: Tue, 22 Oct 2019 20:29:57 +0000 (-0700) Subject: Revert "Fix lld detection in standalone compiler-rt." X-Git-Tag: llvmorg-11-init~5949 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70316d3174d39429c1ef9ad3321def6d52bc35d6;p=platform%2Fupstream%2Fllvm.git Revert "Fix lld detection in standalone compiler-rt." Breaks sanitizer-android buildbot. This reverts commit d56203201f8a1f11abb913c4dfc0bf9c61432d1a. --- diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt index f8925ab..50d0eb0e 100644 --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -497,7 +497,7 @@ else() 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}) + set(COMPILER_RT_HAS_LLD FALSE) endif() endif() pythonize_bool(COMPILER_RT_HAS_LLD) diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake index bc81a7b..875acc8 100644 --- a/compiler-rt/cmake/config-ix.cmake +++ b/compiler-rt/cmake/config-ix.cmake @@ -146,7 +146,6 @@ check_library_exists(stdc++ __cxa_throw "" COMPILER_RT_HAS_LIBSTDCXX) # Linker flags. check_linker_flag("-Wl,-z,text" COMPILER_RT_HAS_Z_TEXT) -check_linker_flag("-fuse-ld=lld" COMPILER_RT_HAS_FUSE_LD_LLD_FLAG) if(ANDROID) check_linker_flag("-Wl,-z,global" COMPILER_RT_HAS_Z_GLOBAL)