[InstCombine] Signed saturation patterns
[llvm-complete.git] / tools / lto / CMakeLists.txt
blobb86e4abd01a79d1b0a7bc52657fd75d4a5bd5ee2
1 set(LLVM_LINK_COMPONENTS
2   AllTargetsAsmParsers
3   AllTargetsCodeGens
4   AllTargetsDescs
5   AllTargetsDisassemblers
6   AllTargetsInfos
7   BitReader
8   Core
9   LTO
10   MC
11   MCDisassembler
12   Support
13   Target
14   )
16 set(SOURCES
17   LTODisassembler.cpp
18   lto.cpp
19   )
21 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports)
23 add_llvm_library(LTO SHARED INSTALL_WITH_TOOLCHAIN ${SOURCES} DEPENDS intrinsics_gen)
25 install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h
26   DESTINATION include/llvm-c
27   COMPONENT LTO)
29 if (APPLE)
30   set(LTO_VERSION ${LLVM_VERSION_MAJOR})
31   if(LLVM_LTO_VERSION_OFFSET)
32     math(EXPR LTO_VERSION "${LLVM_VERSION_MAJOR} + ${LLVM_LTO_VERSION_OFFSET}")
33   endif()
34   set_property(TARGET LTO APPEND_STRING PROPERTY
35               LINK_FLAGS
36               " -compatibility_version 1 -current_version ${LTO_VERSION}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}")
37 endif()