[InstCombine] Signed saturation patterns
[llvm-complete.git] / utils / gn / secondary / clang / lib / FrontendTool / BUILD.gn
blob6bcb4c320097a5e790e7f8430bded77e57637193
1 import("//clang/lib/ARCMigrate/enable.gni")
2 import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
4 assert(clang_enable_static_analyzer || !clang_enable_arcmt,
5        "Cannot disable static analyzer while enabling ARCMT")
7 static_library("FrontendTool") {
8   output_name = "clangFrontendTool"
9   configs += [ "//llvm/utils/gn/build:clang_code" ]
10   deps = [
11     "//clang/include/clang/Config",
12     "//clang/lib/Basic",
13     "//clang/lib/CodeGen",
14     "//clang/lib/Driver",
15     "//clang/lib/Frontend",
16     "//clang/lib/Frontend/Rewrite",
17     "//llvm/lib/Option",
18     "//llvm/lib/Support",
19   ]
20   if (clang_enable_arcmt) {
21     deps += [ "//clang/lib/ARCMigrate" ]
22   }
23   if (clang_enable_static_analyzer) {
24     deps += [ "//clang/lib/StaticAnalyzer/Frontend" ]
25   }
26   sources = [
27     "ExecuteCompilerInvocation.cpp",
28   ]