This avoid pulling in the entire Passes library with all passes as dependencies when just referring to PassPlugin, which is in fact independent of the Passes themselves. Pull Request: https://github.com/llvm/llvm-project/pull/173279
44 lines
606 B
CMake
44 lines
606 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
AllTargetsAsmParsers
|
|
AllTargetsCodeGens
|
|
AllTargetsDescs
|
|
AllTargetsInfos
|
|
Analysis
|
|
BitWriter
|
|
CodeGen
|
|
Extensions
|
|
Core
|
|
IPO
|
|
IRReader
|
|
AggressiveInstCombine
|
|
InstCombine
|
|
Instrumentation
|
|
Linker
|
|
Plugins
|
|
ObjCARCOpts
|
|
ScalarOpts
|
|
Support
|
|
Target
|
|
TargetParser
|
|
TransformUtils
|
|
Vectorize
|
|
)
|
|
|
|
add_llvm_tool(bugpoint
|
|
BugDriver.cpp
|
|
CrashDebugger.cpp
|
|
ExecutionDriver.cpp
|
|
ExtractFunction.cpp
|
|
FindBugs.cpp
|
|
Miscompilation.cpp
|
|
OptimizerDriver.cpp
|
|
ToolRunner.cpp
|
|
bugpoint.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
SUPPORT_PLUGINS
|
|
|
|
EXPORT_SYMBOLS
|
|
)
|