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