mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
82b54aea79
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
25 lines
317 B
CMake
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)
|