Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / tools / clang-linker-wrapper / CMakeLists.txt
blob198dbff8cf83c6cc00941f1967d81fdcfb2a125d
1 set(LLVM_LINK_COMPONENTS
2   ${LLVM_TARGETS_TO_BUILD}
3   BitWriter
4   Core
5   BinaryFormat
6   MC
7   Target
8   TransformUtils
9   Analysis
10   Passes
11   IRReader
12   Object
13   Option
14   Support
15   TargetParser
16   CodeGen
17   LTO
18   )
20 set(LLVM_TARGET_DEFINITIONS LinkerWrapperOpts.td)
21 tablegen(LLVM LinkerWrapperOpts.inc -gen-opt-parser-defs)
22 add_public_tablegen_target(LinkerWrapperOpts)
24 if(NOT CLANG_BUILT_STANDALONE)
25   set(tablegen_deps intrinsics_gen LinkerWrapperOpts)
26 endif()
28 add_clang_tool(clang-linker-wrapper
29   ClangLinkerWrapper.cpp
30   OffloadWrapper.cpp
32   DEPENDS
33   ${tablegen_deps}
34   )
36 set(CLANG_LINKER_WRAPPER_LIB_DEPS
37   clangBasic
38   )
40 target_link_libraries(clang-linker-wrapper
41   PRIVATE
42   ${CLANG_LINKER_WRAPPER_LIB_DEPS}
43   )