Fix test failures introduced by PR #113697 (#116941)
[llvm-project.git] / llvm / tools / opt / CMakeLists.txt
blob6dd74ae1b7f8fe8f19f8b2b396763bde5b9e8d7f
1 set(LLVM_LINK_COMPONENTS
2   AllTargetsAsmParsers
3   AllTargetsCodeGens
4   AllTargetsDescs
5   AllTargetsInfos
6   AggressiveInstCombine
7   Analysis
8   AsmParser
9   BitWriter
10   CFGuard
11   CodeGen
12   Core
13   Coroutines
14   Extensions
15   IPO
16   IRReader
17   IRPrinter
18   InstCombine
19   Instrumentation
20   MC
21   ObjCARCOpts
22   Remarks
23   ScalarOpts
24   Support
25   Target
26   TargetParser
27   TransformUtils
28   Vectorize
29   Passes
30   )
32 # We don't want to link this into libLLVM
33 add_llvm_library(LLVMOptDriver
34   STATIC
35   NewPMDriver.cpp
36   optdriver.cpp
37   PARTIAL_SOURCES_INTENDED
38   DEPENDS
39   intrinsics_gen
42 add_llvm_tool(opt
43   PARTIAL_SOURCES_INTENDED
44   opt.cpp
45   DEPENDS
46   intrinsics_gen
47   SUPPORT_PLUGINS
49   EXPORT_SYMBOLS
50   )
51 target_link_libraries(opt PRIVATE LLVMOptDriver)
53 setup_host_tool(opt OPT opt_exe opt_target)