2013-12-10 19:13:32 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Analysis
|
|
|
|
BitWriter
|
2014-02-22 08:07:45 +08:00
|
|
|
CodeGen
|
2013-12-10 19:13:32 +08:00
|
|
|
Core
|
|
|
|
IPO
|
|
|
|
IRReader
|
|
|
|
InstCombine
|
|
|
|
Instrumentation
|
|
|
|
Linker
|
|
|
|
ObjCARCOpts
|
|
|
|
ScalarOpts
|
|
|
|
Support
|
|
|
|
Target
|
|
|
|
TransformUtils
|
|
|
|
Vectorize
|
|
|
|
)
|
2010-09-14 07:59:48 +08:00
|
|
|
|
2013-12-30 11:36:05 +08:00
|
|
|
# Support plugins.
|
|
|
|
set(LLVM_NO_DEAD_STRIP 1)
|
|
|
|
|
2008-09-22 09:08:49 +08:00
|
|
|
add_llvm_tool(bugpoint
|
|
|
|
BugDriver.cpp
|
|
|
|
CrashDebugger.cpp
|
|
|
|
ExecutionDriver.cpp
|
|
|
|
ExtractFunction.cpp
|
|
|
|
FindBugs.cpp
|
|
|
|
Miscompilation.cpp
|
|
|
|
OptimizerDriver.cpp
|
|
|
|
ToolRunner.cpp
|
|
|
|
bugpoint.cpp
|
|
|
|
)
|
2015-03-19 04:09:13 +08:00
|
|
|
export_executable_symbols(bugpoint)
|
2014-03-14 12:04:14 +08:00
|
|
|
|
|
|
|
if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
|
|
|
|
target_link_libraries(bugpoint Polly)
|
|
|
|
if(POLLY_LINK_LIBS)
|
|
|
|
foreach(lib ${POLLY_LINK_LIBS})
|
|
|
|
target_link_libraries(bugpoint ${lib})
|
|
|
|
endforeach(lib)
|
|
|
|
endif(POLLY_LINK_LIBS)
|
2016-09-14 11:09:48 +08:00
|
|
|
# Ensure LLVMTarget can resolve dependences in Polly.
|
|
|
|
target_link_libraries(bugpoint LLVMTarget)
|
2014-03-14 12:04:14 +08:00
|
|
|
endif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
|