summaryrefslogtreecommitdiff
path: root/tools/lto/CMakeLists.txt
blob: b0aebd4f2ee1807a6471c49e9927e4bb9fa30c51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set(LLVM_LINK_COMPONENTS
  ${LLVM_TARGETS_TO_BUILD}
  ipo scalaropts linker bitreader bitwriter)

add_definitions( -DLLVM_VERSION_INFO=\"${PACKAGE_VERSION}\" )

# TODO: build a static library too.
set(BUILD_SHARED_LIBS ON)

add_llvm_library(LTO
  LTOCodeGenerator.cpp
  lto.cpp
  LTOModule.cpp
  )