1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/tools/llc/CMakeLists.txt
Eli Friedman 45e4a653e4 Don't export symbols from clang/opt/llc if plugins are disabled.
The only reason we export symbols from these tools is to support
plugins; if we don't have plugins, exporting symbols just bloats the
executable and makes LTO less effective.

See review of D75879 for the discussion that led to this patch.

Differential Revision: https://reviews.llvm.org/D76527
2020-03-23 12:17:09 -07:00

31 lines
387 B
CMake

set(LLVM_LINK_COMPONENTS
AllTargetsAsmParsers
AllTargetsCodeGens
AllTargetsDescs
AllTargetsInfos
Analysis
AsmPrinter
CodeGen
Core
IRReader
MC
MIRParser
Remarks
ScalarOpts
SelectionDAG
Support
Target
TransformUtils
Vectorize
)
add_llvm_tool(llc
llc.cpp
DEPENDS
intrinsics_gen
SUPPORT_PLUGINS
)
export_executable_symbols_for_plugins(llc)