54 lines · plain
1set(LLVM_LINK_COMPONENTS2 AllTargetsAsmParsers3 AllTargetsCodeGens4 AllTargetsDescs5 AllTargetsInfos6 AggressiveInstCombine7 Analysis8 AsmParser9 BitWriter10 CFGuard11 CodeGen12 Core13 Coroutines14 Extensions15 IPO16 IRReader17 IRPrinter18 InstCombine19 Instrumentation20 MC21 ObjCARCOpts22 Remarks23 ScalarOpts24 Support25 Target26 TargetParser27 TransformUtils28 Vectorize29 Passes30 )31 32# We don't want to link this into libLLVM33add_llvm_library(LLVMOptDriver34 STATIC35 NewPMDriver.cpp36 optdriver.cpp37 PARTIAL_SOURCES_INTENDED38 DEPENDS39 intrinsics_gen40)41 42add_llvm_tool(opt43 PARTIAL_SOURCES_INTENDED44 opt.cpp45 DEPENDS46 intrinsics_gen47 SUPPORT_PLUGINS48 49 EXPORT_SYMBOLS50 )51target_link_libraries(opt PRIVATE LLVMOptDriver)52 53setup_host_tool(opt OPT opt_exe opt_target)54