1 set(LLVM_LINK_COMPONENTS
5 AllTargetsDisassemblers
22 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
24 if(CMAKE_SYSTEM_NAME STREQUAL AIX)
25 set(LTO_LIBRARY_TYPE MODULE)
26 set(LTO_LIBRARY_NAME libLTO)
28 set(LTO_LIBRARY_TYPE SHARED)
29 set(LTO_LIBRARY_NAME LTO)
32 add_llvm_library(${LTO_LIBRARY_NAME} ${LTO_LIBRARY_TYPE} INSTALL_WITH_TOOLCHAIN
33 ${SOURCES} DEPENDS intrinsics_gen)
35 install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
36 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/llvm-c"
40 set(LTO_VERSION ${LLVM_VERSION_MAJOR})
41 if(LLVM_LTO_VERSION_OFFSET)
42 math(EXPR LTO_VERSION "${LLVM_VERSION_MAJOR} + ${LLVM_LTO_VERSION_OFFSET}")
44 set_property(TARGET LTO APPEND_STRING PROPERTY
46 " -compatibility_version 1 -current_version ${LTO_VERSION}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}")