2011-03-12 17:48:49 +01:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
${LLVM_TARGETS_TO_BUILD}
|
2013-12-10 12:13:32 +01:00
|
|
|
Core
|
|
|
|
LTO
|
|
|
|
MC
|
2014-01-31 18:57:50 +01:00
|
|
|
MCDisassembler
|
2013-12-10 12:13:32 +01:00
|
|
|
Support
|
|
|
|
)
|
2011-03-11 16:44:24 +01:00
|
|
|
|
|
|
|
add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" )
|
|
|
|
|
2011-03-12 18:32:30 +01:00
|
|
|
set(SOURCES
|
2012-11-24 17:59:10 +01:00
|
|
|
LTODisassembler.cpp
|
2011-03-11 16:44:24 +01:00
|
|
|
lto.cpp
|
|
|
|
)
|
|
|
|
|
2013-12-29 00:31:44 +01:00
|
|
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
|
2013-10-08 17:07:00 +02:00
|
|
|
|
2014-06-27 04:51:21 +02:00
|
|
|
add_llvm_library(LTO SHARED ${SOURCES})
|
2013-08-26 18:54:12 +02:00
|
|
|
|
2014-02-21 15:57:09 +01:00
|
|
|
install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
|
|
|
|
DESTINATION include/llvm-c)
|