1*9880d681SAndroid Build Coastguard Workerset(LLVM_LINK_COMPONENTS 2*9880d681SAndroid Build Coastguard Worker ${LLVM_TARGETS_TO_BUILD} 3*9880d681SAndroid Build Coastguard Worker Analysis 4*9880d681SAndroid Build Coastguard Worker BitWriter 5*9880d681SAndroid Build Coastguard Worker CodeGen 6*9880d681SAndroid Build Coastguard Worker Core 7*9880d681SAndroid Build Coastguard Worker IPO 8*9880d681SAndroid Build Coastguard Worker IRReader 9*9880d681SAndroid Build Coastguard Worker InstCombine 10*9880d681SAndroid Build Coastguard Worker Instrumentation 11*9880d681SAndroid Build Coastguard Worker MC 12*9880d681SAndroid Build Coastguard Worker ObjCARCOpts 13*9880d681SAndroid Build Coastguard Worker ScalarOpts 14*9880d681SAndroid Build Coastguard Worker Support 15*9880d681SAndroid Build Coastguard Worker Target 16*9880d681SAndroid Build Coastguard Worker TransformUtils 17*9880d681SAndroid Build Coastguard Worker Vectorize 18*9880d681SAndroid Build Coastguard Worker Passes 19*9880d681SAndroid Build Coastguard Worker ) 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Worker# Support plugins. 22*9880d681SAndroid Build Coastguard Workerset(LLVM_NO_DEAD_STRIP 1) 23*9880d681SAndroid Build Coastguard Worker 24*9880d681SAndroid Build Coastguard Workeradd_llvm_tool(opt 25*9880d681SAndroid Build Coastguard Worker AnalysisWrappers.cpp 26*9880d681SAndroid Build Coastguard Worker BreakpointPrinter.cpp 27*9880d681SAndroid Build Coastguard Worker GraphPrinters.cpp 28*9880d681SAndroid Build Coastguard Worker NewPMDriver.cpp 29*9880d681SAndroid Build Coastguard Worker PassPrinters.cpp 30*9880d681SAndroid Build Coastguard Worker PrintSCC.cpp 31*9880d681SAndroid Build Coastguard Worker opt.cpp 32*9880d681SAndroid Build Coastguard Worker ) 33*9880d681SAndroid Build Coastguard Workerexport_executable_symbols(opt) 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(opt 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(opt ${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