[compiler-rt] r304716 - CMake: don't try to use lld if we're not building it.
    Tim Northover via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun  5 08:10:04 PDT 2017
    
    
  
Author: tnorthover
Date: Mon Jun  5 10:10:04 2017
New Revision: 304716
URL: http://llvm.org/viewvc/llvm-project?rev=304716&view=rev
Log:
CMake: don't try to use lld if we're not building it.
Monorepo version!
Modified:
    compiler-rt/trunk/CMakeLists.txt
Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=304716&r1=304715&r2=304716&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Mon Jun  5 10:10:04 2017
@@ -255,7 +255,7 @@ if(EXISTS ${COMPILER_RT_LLD_PATH}/ AND L
   set(COMPILER_RT_HAS_LLD TRUE)
 else()
   set(COMPILER_RT_LLD_PATH ${LLVM_MAIN_SRC_DIR}/../lld)
-  if(EXISTS ${COMPILER_RT_LLD_PATH}/)
+  if(EXISTS ${COMPILER_RT_LLD_PATH}/ AND LLVM_TOOL_LLD_BUILD)
     set(COMPILER_RT_HAS_LLD TRUE)
   else()
     set(COMPILER_RT_HAS_LLD FALSE)
    
    
More information about the llvm-commits
mailing list