Improve Register Setup
[llvm-core.git] / tools / bugpoint / CMakeLists.txt
blob654ecc496a919b498cc48b4cc9d11ecc600ed951
1 set(LLVM_LINK_COMPONENTS
2   ${LLVM_TARGETS_TO_BUILD}
3   Analysis
4   BitWriter
5   CodeGen
6   Core
7   IPO
8   IRReader
9   AggressiveInstCombine
10   InstCombine
11   Instrumentation
12   Linker
13   ObjCARCOpts
14   ScalarOpts
15   Support
16   Target
17   TransformUtils
18   Vectorize
19   )
21 # Support plugins.
22 set(LLVM_NO_DEAD_STRIP 1)
24 add_llvm_tool(bugpoint
25   BugDriver.cpp
26   CrashDebugger.cpp
27   ExecutionDriver.cpp
28   ExtractFunction.cpp
29   FindBugs.cpp
30   Miscompilation.cpp
31   OptimizerDriver.cpp
32   ToolRunner.cpp
33   bugpoint.cpp
35   DEPENDS
36   intrinsics_gen
37   )
38 export_executable_symbols(bugpoint)
40 if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
41   target_link_libraries(bugpoint PRIVATE Polly)
42   # Ensure LLVMTarget can resolve dependences in Polly.
43   target_link_libraries(bugpoint PRIVATE LLVMTarget)
44 endif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)