[PATCH] D55980: [gn build] Add build file for clang/lib/FrontendTool
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 21 19:19:32 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL349988: [gn build] Add build file for clang/lib/FrontendTool (authored by nico, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D55980?vs=179233&id=179402#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55980/new/
https://reviews.llvm.org/D55980
Files:
llvm/trunk/utils/gn/secondary/BUILD.gn
llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn
Index: llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn
+++ llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn
@@ -0,0 +1,29 @@
+import("//clang/lib/ARCMigrate/enable.gni")
+import("//clang/lib/StaticAnalyzer/Frontend/enable.gni")
+
+assert(clang_enable_static_analyzer || !clang_enable_arcmt,
+ "Cannot disable static analyzer while enabling ARCMT")
+
+static_library("FrontendTool") {
+ output_name = "clangFrontendTool"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//clang/include/clang/Config",
+ "//clang/lib/Basic",
+ "//clang/lib/CodeGen",
+ "//clang/lib/Driver",
+ "//clang/lib/Frontend",
+ "//clang/lib/Frontend/Rewrite",
+ "//llvm/lib/Option",
+ "//llvm/lib/Support",
+ ]
+ if (clang_enable_arcmt) {
+ deps += [ "//clang/lib/ARCMigrate" ]
+ }
+ if (clang_enable_static_analyzer) {
+ deps += [ "//clang/lib/StaticAnalyzer/Frontend" ]
+ }
+ sources = [
+ "ExecuteCompilerInvocation.cpp",
+ ]
+}
Index: llvm/trunk/utils/gn/secondary/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn
+++ llvm/trunk/utils/gn/secondary/BUILD.gn
@@ -8,6 +8,7 @@
"//clang/lib/Driver",
"//clang/lib/Frontend",
"//clang/lib/Frontend/Rewrite",
+ "//clang/lib/FrontendTool",
"//clang/lib/Index",
"//clang/lib/Parse",
"//clang/lib/Serialization",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55980.179402.patch
Type: text/x-patch
Size: 1559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181222/f385a848/attachment-0001.bin>
More information about the cfe-commits
mailing list