xref: /aosp_15_r20/external/llvm/tools/bugpoint/CMakeLists.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Workerset(LLVM_LINK_COMPONENTS
2*9880d681SAndroid Build Coastguard Worker  Analysis
3*9880d681SAndroid Build Coastguard Worker  BitWriter
4*9880d681SAndroid Build Coastguard Worker  CodeGen
5*9880d681SAndroid Build Coastguard Worker  Core
6*9880d681SAndroid Build Coastguard Worker  IPO
7*9880d681SAndroid Build Coastguard Worker  IRReader
8*9880d681SAndroid Build Coastguard Worker  InstCombine
9*9880d681SAndroid Build Coastguard Worker  Instrumentation
10*9880d681SAndroid Build Coastguard Worker  Linker
11*9880d681SAndroid Build Coastguard Worker  ObjCARCOpts
12*9880d681SAndroid Build Coastguard Worker  ScalarOpts
13*9880d681SAndroid Build Coastguard Worker  Support
14*9880d681SAndroid Build Coastguard Worker  Target
15*9880d681SAndroid Build Coastguard Worker  TransformUtils
16*9880d681SAndroid Build Coastguard Worker  Vectorize
17*9880d681SAndroid Build Coastguard Worker  )
18*9880d681SAndroid Build Coastguard Worker
19*9880d681SAndroid Build Coastguard Worker# Support plugins.
20*9880d681SAndroid Build Coastguard Workerset(LLVM_NO_DEAD_STRIP 1)
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Workeradd_llvm_tool(bugpoint
23*9880d681SAndroid Build Coastguard Worker  BugDriver.cpp
24*9880d681SAndroid Build Coastguard Worker  CrashDebugger.cpp
25*9880d681SAndroid Build Coastguard Worker  ExecutionDriver.cpp
26*9880d681SAndroid Build Coastguard Worker  ExtractFunction.cpp
27*9880d681SAndroid Build Coastguard Worker  FindBugs.cpp
28*9880d681SAndroid Build Coastguard Worker  Miscompilation.cpp
29*9880d681SAndroid Build Coastguard Worker  OptimizerDriver.cpp
30*9880d681SAndroid Build Coastguard Worker  ToolRunner.cpp
31*9880d681SAndroid Build Coastguard Worker  bugpoint.cpp
32*9880d681SAndroid Build Coastguard Worker  )
33*9880d681SAndroid Build Coastguard Workerexport_executable_symbols(bugpoint)
34*9880d681SAndroid Build Coastguard Worker
35*9880d681SAndroid Build Coastguard Workerif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
36*9880d681SAndroid Build Coastguard Worker  target_link_libraries(bugpoint Polly)
37*9880d681SAndroid Build Coastguard Worker  if(POLLY_LINK_LIBS)
38*9880d681SAndroid Build Coastguard Worker    foreach(lib ${POLLY_LINK_LIBS})
39*9880d681SAndroid Build Coastguard Worker      target_link_libraries(bugpoint ${lib})
40*9880d681SAndroid Build Coastguard Worker    endforeach(lib)
41*9880d681SAndroid Build Coastguard Worker  endif(POLLY_LINK_LIBS)
42*9880d681SAndroid Build Coastguard Workerendif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS)
43