llvm.org GIT mirror llvm / 2db3151
Don't force the build of toos/lto as a static lib. Any uses of tools/lto as a static lib should probably move to lib/LTO. This was also never implemented in the configure build, so this reduces the differences among the two. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211852 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 5 years ago
2 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
4848 add_llvm_tool_subdirectory(obj2yaml)
4949 add_llvm_tool_subdirectory(yaml2obj)
5050
51 if( NOT CYGWIN )
51 if(NOT CYGWIN AND LLVM_ENABLE_PIC)
5252 add_llvm_tool_subdirectory(lto)
5353 add_llvm_tool_subdirectory(llvm-lto)
5454 else()
1515
1616 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
1717
18 if(NOT CYGWIN AND LLVM_ENABLE_PIC)
19 set(ENABLE_SHARED SHARED)
20 endif()
21
22 add_llvm_library(LTO ${ENABLE_SHARED} STATIC ${SOURCES})
18 add_llvm_library(LTO SHARED ${SOURCES})
2319
2420 install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
2521 DESTINATION include/llvm-c)