Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / tools / clang-scan-deps / CMakeLists.txt
blobf0be6a546ff88293b8e1285ae6316f49cfe3731c
1 set(LLVM_LINK_COMPONENTS
2   Core
3   Option
4   Support
5   TargetParser
6   )
8 set(LLVM_TARGET_DEFINITIONS Opts.td)
9 tablegen(LLVM Opts.inc -gen-opt-parser-defs)
10 add_public_tablegen_target(ScanDepsOptsTableGen)
12 add_clang_tool(clang-scan-deps
13   ClangScanDeps.cpp
15   DEPENDS
16   ScanDepsOptsTableGen
17   GENERATE_DRIVER
18   )
20 set(CLANG_SCAN_DEPS_LIB_DEPS
21   clangAST
22   clangBasic
23   clangDependencyScanning
24   clangDriver
25   clangFrontend
26   clangLex
27   clangSerialization
28   clangTooling
29   )
31 clang_target_link_libraries(clang-scan-deps
32   PRIVATE
33   ${CLANG_SCAN_DEPS_LIB_DEPS}
34   )