1set(LLVM_LINK_COMPONENTS 2 Analysis 3 BitWriter 4 CodeGen 5 Core 6 IPA 7 IPO 8 IRReader 9 InstCombine 10 Instrumentation 11 Linker 12 ObjCARCOpts 13 ScalarOpts 14 Support 15 Target 16 TransformUtils 17 Vectorize 18 ) 19 20# Support plugins. 21set(LLVM_NO_DEAD_STRIP 1) 22 23add_llvm_tool(bugpoint 24 BugDriver.cpp 25 CrashDebugger.cpp 26 ExecutionDriver.cpp 27 ExtractFunction.cpp 28 FindBugs.cpp 29 Miscompilation.cpp 30 OptimizerDriver.cpp 31 ToolRunner.cpp 32 bugpoint.cpp 33 ) 34export_executable_symbols(bugpoint) 35 36if(WITH_POLLY AND LINK_POLLY_INTO_TOOLS) 37 target_link_libraries(bugpoint Polly) 38 if(POLLY_LINK_LIBS) 39 foreach(lib ${POLLY_LINK_LIBS}) 40 target_link_libraries(bugpoint ${lib}) 41 endforeach(lib) 42 endif(POLLY_LINK_LIBS) 43endif(WITH_POLLY AND LINK_POLLY_INTO_TOOLS) 44