mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-26 10:29:36 +00:00
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
This commit is contained in:
parent
20e4c0d24e
commit
2db3151eab
@ -49,7 +49,7 @@ add_llvm_tool_subdirectory(llvm-c-test)
|
|||||||
add_llvm_tool_subdirectory(obj2yaml)
|
add_llvm_tool_subdirectory(obj2yaml)
|
||||||
add_llvm_tool_subdirectory(yaml2obj)
|
add_llvm_tool_subdirectory(yaml2obj)
|
||||||
|
|
||||||
if( NOT CYGWIN )
|
if(NOT CYGWIN AND LLVM_ENABLE_PIC)
|
||||||
add_llvm_tool_subdirectory(lto)
|
add_llvm_tool_subdirectory(lto)
|
||||||
add_llvm_tool_subdirectory(llvm-lto)
|
add_llvm_tool_subdirectory(llvm-lto)
|
||||||
else()
|
else()
|
||||||
|
@ -16,11 +16,7 @@ set(SOURCES
|
|||||||
|
|
||||||
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
|
||||||
|
|
||||||
if(NOT CYGWIN AND LLVM_ENABLE_PIC)
|
add_llvm_library(LTO SHARED ${SOURCES})
|
||||||
set(ENABLE_SHARED SHARED)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_llvm_library(LTO ${ENABLE_SHARED} STATIC ${SOURCES})
|
|
||||||
|
|
||||||
install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
|
install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
|
||||||
DESTINATION include/llvm-c)
|
DESTINATION include/llvm-c)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user