1 static_library("Driver") {
2 output_name = "clangDriver"
3 configs += [ "//llvm/utils/gn/build:clang_code" ]
6 "//clang/include/clang/Config",
8 # Driver doesn't depend on StaticAnalyzer and the other way round, but
9 # as of clang r311958 Driver does depend on StaticAnalyzer/Checkers's
10 # tablegen'd Checkers.inc. The CMake build runs all clang tablegen steps
11 # before all lib compilations via the clang-tablegen-targets target; the
12 # GN build has this dependency instead.
13 # FIXME: Move Checkers.td somewhere else to clean up this layering mess.
14 # See the review thread of r311958 for details.
15 "//clang/include/clang/StaticAnalyzer/Checkers",
17 "//llvm/include/llvm/Config:llvm-config",
18 "//llvm/lib/BinaryFormat",
23 # public_dep because public header Options.h includes generated Options.inc.
24 "//clang/include/clang/Driver:Options",
26 if (host_os == "win") {
27 # MSVCToolChain.cpp uses version.dll.
28 libs = [ "version.lib" ]
43 "ToolChains/AMDGPU.cpp",
45 "ToolChains/Ananas.cpp",
46 "ToolChains/Arch/AArch64.cpp",
47 "ToolChains/Arch/ARM.cpp",
48 "ToolChains/Arch/Mips.cpp",
49 "ToolChains/Arch/PPC.cpp",
50 "ToolChains/Arch/RISCV.cpp",
51 "ToolChains/Arch/Sparc.cpp",
52 "ToolChains/Arch/SystemZ.cpp",
53 "ToolChains/Arch/X86.cpp",
54 "ToolChains/BareMetal.cpp",
55 "ToolChains/Clang.cpp",
56 "ToolChains/CloudABI.cpp",
57 "ToolChains/CommonArgs.cpp",
58 "ToolChains/Contiki.cpp",
59 "ToolChains/CrossWindows.cpp",
60 "ToolChains/Cuda.cpp",
61 "ToolChains/Darwin.cpp",
62 "ToolChains/DragonFly.cpp",
63 "ToolChains/FreeBSD.cpp",
64 "ToolChains/Fuchsia.cpp",
67 "ToolChains/Haiku.cpp",
68 "ToolChains/Hexagon.cpp",
69 "ToolChains/Hurd.cpp",
70 "ToolChains/InterfaceStubs.cpp",
71 "ToolChains/Linux.cpp",
72 "ToolChains/MSP430.cpp",
73 "ToolChains/MSVC.cpp",
74 "ToolChains/MinGW.cpp",
75 "ToolChains/Minix.cpp",
76 "ToolChains/MipsLinux.cpp",
77 "ToolChains/Myriad.cpp",
78 "ToolChains/NaCl.cpp",
79 "ToolChains/NetBSD.cpp",
80 "ToolChains/OpenBSD.cpp",
81 "ToolChains/PPCLinux.cpp",
82 "ToolChains/PS4CPU.cpp",
83 "ToolChains/RISCVToolchain.cpp",
84 "ToolChains/Solaris.cpp",
86 "ToolChains/WebAssembly.cpp",
87 "ToolChains/XCore.cpp",