[CMake] Autoconf builds libLTO with -fPIC, CMake should be able to as well.
authorChris Bieneman <beanz@apple.com>
Tue, 10 Nov 2015 21:38:58 +0000 (21:38 +0000)
committerChris Bieneman <beanz@apple.com>
Tue, 10 Nov 2015 21:38:58 +0000 (21:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252652 91177308-0d34-0410-b5e6-96231b3b80d8

tools/CMakeLists.txt

index 1b57d7a..85b01c3 100644 (file)
@@ -25,7 +25,7 @@ if(NOT LLVM_USE_INTEL_JITEVENTS )
   set(LLVM_TOOL_LLVM_JITLISTENER_BUILD Off)
 endif()
 
-if(CYGWIN OR NOT LLVM_ENABLE_PIC)
+if(CYGWIN)
   set(LLVM_TOOL_LTO_BUILD Off)
   set(LLVM_TOOL_LLVM_LTO_BUILD Off)
 endif()