1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/tools/llvm-lto2/CMakeLists.txt
Eli Friedman 82b54aea79 Enable new passmanager plugin support for LTO.
This should make both static and dynamic NewPM plugins work with LTO.
And as a bonus, it makes static linking of OldPM plugins more reliable
for plugins with both an OldPM and NewPM interface.

I only implemented the command-line flag to specify NewPM plugins in
llvm-lto2, to show it works. Support can be added for other tools later.

Differential Revision: https://reviews.llvm.org/D76866
2020-04-14 15:07:07 -07:00

25 lines
317 B
CMake

set(LLVM_LINK_COMPONENTS
AllTargetsAsmParsers
AllTargetsCodeGens
AllTargetsDescs
AllTargetsInfos
BitReader
CodeGen
Core
Linker
LTO
MC
Object
Passes
Support
Target
)
add_llvm_tool(llvm-lto2
llvm-lto2.cpp
DEPENDS
intrinsics_gen
)
export_executable_symbols_for_plugins(llvm-lto2)