From: Chris Bieneman Date: Tue, 10 Nov 2015 21:38:58 +0000 (+0000) Subject: [CMake] Autoconf builds libLTO with -fPIC, CMake should be able to as well. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=9fd4377ddb83aee3c049dc8757e7771edbb8ee71 [CMake] Autoconf builds libLTO with -fPIC, CMake should be able to as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252652 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 1b57d7abd13..85b01c312cf 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -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()