llvm-mirror/tools/llvm-lto/CMakeLists.txt
Chris Bieneman 75f28ca9b7 [CMake] llvm-lto depends on intrinsics_gen
llvm-lto.cpp has the following include chain:

llvm/Bitcode/BitcodeReader.h
llvm/IR/ModuleSummaryIndex.h
llvm/IR/Module.h
llvm/IR/Function.h
llvm/IR/Argument.h
llvm/IR/Attributes.h
llvm/IR/Attributes.gen

This means llvm-lto needs to depend on intrinsics_gen.

llvm-svn: 287398
2016-11-18 23:20:35 +00:00

21 lines
209 B
CMake

set(LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
BitReader
BitWriter
Core
IRReader
LTO
MC
Object
Support
Target
)
add_llvm_tool(llvm-lto
llvm-lto.cpp
DEPENDS
intrinsics_gen
)