Mercurial > hg > CbC > CbC_llvm
view tools/lto/CMakeLists.txt @ 108:1881386f7909
use llvm.setjmp and llvm.longjmp
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 01 Feb 2016 02:57:01 +0900 |
parents | 7d135dc70f03 |
children | 1172e4bd9c6f |
line wrap: on
line source
set(LLVM_LINK_COMPONENTS ${LLVM_TARGETS_TO_BUILD} Core LTO MC MCDisassembler Support Target ) set(SOURCES LTODisassembler.cpp lto.cpp ) set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/lto.exports) add_llvm_library(LTO SHARED ${SOURCES}) install(FILES ${LLVM_MAIN_INCLUDE_DIR}/llvm-c/lto.h DESTINATION include/llvm-c) if (APPLE) set(LTO_VERSION ${LLVM_VERSION_MAJOR}) if(LLVM_LTO_VERSION_OFFSET) math(EXPR LTO_VERSION "${LLVM_VERSION_MAJOR} + ${LLVM_LTO_VERSION_OFFSET}") endif() set_property(TARGET LTO APPEND_STRING PROPERTY LINK_FLAGS " -compatibility_version 1 -current_version ${LTO_VERSION}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}") endif()