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.

llvm-svn: 211852
This commit is contained in:
Rafael Espindola 2014-06-27 02:51:21 +00:00
parent 6a7f33387d
commit 3ef98ff5f9
2 changed files with 2 additions and 6 deletions

View File

@ -49,7 +49,7 @@ add_llvm_tool_subdirectory(llvm-c-test)
add_llvm_tool_subdirectory(obj2yaml)
add_llvm_tool_subdirectory(yaml2obj)
if( NOT CYGWIN )
if(NOT CYGWIN AND LLVM_ENABLE_PIC)
add_llvm_tool_subdirectory(lto)
add_llvm_tool_subdirectory(llvm-lto)
else()

View File

@ -16,11 +16,7 @@ set(SOURCES
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
if(NOT CYGWIN AND LLVM_ENABLE_PIC)
set(ENABLE_SHARED SHARED)
endif()
add_llvm_library(LTO ${ENABLE_SHARED} STATIC ${SOURCES})
add_llvm_library(LTO SHARED ${SOURCES})
install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
DESTINATION include/llvm-c)