mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 14:06:36 +00:00
3a3c260954
The rational for this change is that LLVMBuild cannot express conditional dependencies. Therefore, when we start optionally using GlobalISel library for say AArch64, without that change, all the tools that use the AArch64 library would need to explicitly link with GlobalISel when we ask for it. This does not scale. Instead, we will set the dependencies between the target and GlobalISel and if we did not ask to build GlobalISel, the library will just be empty. Thanks to Chris Bieneman and Mehdi Animi for the idea. llvm-svn: 260566
24 lines
299 B
CMake
24 lines
299 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Analysis
|
|
AsmPrinter
|
|
CodeGen
|
|
Core
|
|
IRReader
|
|
MC
|
|
MIRParser
|
|
ScalarOpts
|
|
SelectionDAG
|
|
Support
|
|
Target
|
|
TransformUtils
|
|
)
|
|
|
|
# Support plugins.
|
|
set(LLVM_NO_DEAD_STRIP 1)
|
|
|
|
add_llvm_tool(llc
|
|
llc.cpp
|
|
)
|
|
export_executable_symbols(llc)
|