llvm-6502/tools/lto/CMakeLists.txt
Oscar Fuentes 1dc550b383 Add LTO and gold plugin to the CMake build. Linux-only, support for
other systems pending.

PR9456.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127466 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-11 15:44:24 +00:00

14 lines
270 B
CMake

set(LLVM_LINK_COMPONENTS 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
)