[PATCH] D17049: [CMake] don't build libLTO when LLVM_ENABLE_PIC is OFF

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 11:06:59 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL260703: [CMake] don't build libLTO when LLVM_ENABLE_PIC is OFF (authored by hans).

Changed prior to commit:
  http://reviews.llvm.org/D17049?vs=47383&id=47820#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17049

Files:
  llvm/trunk/tools/CMakeLists.txt

Index: llvm/trunk/tools/CMakeLists.txt
===================================================================
--- llvm/trunk/tools/CMakeLists.txt
+++ llvm/trunk/tools/CMakeLists.txt
@@ -25,7 +25,7 @@
   set(LLVM_TOOL_LLVM_JITLISTENER_BUILD Off)
 endif()
 
-if(CYGWIN)
+if(CYGWIN OR NOT LLVM_ENABLE_PIC)
   set(LLVM_TOOL_LTO_BUILD Off)
   set(LLVM_TOOL_LLVM_LTO_BUILD Off)
 endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17049.47820.patch
Type: text/x-patch
Size: 378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160212/899908f9/attachment.bin>


More information about the llvm-commits mailing list