[llvm] r349988 - [gn build] Add build file for clang/lib/FrontendTool
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 21 19:15:57 PST 2018
Author: nico
Date: Fri Dec 21 19:15:56 2018
New Revision: 349988
URL: http://llvm.org/viewvc/llvm-project?rev=349988&view=rev
Log:
[gn build] Add build file for clang/lib/FrontendTool
Differential Revision: https://reviews.llvm.org/D55980
Added:
llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/
llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn
Modified:
llvm/trunk/utils/gn/secondary/BUILD.gn
Modified: llvm/trunk/utils/gn/secondary/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/BUILD.gn?rev=349988&r1=349987&r2=349988&view=diff
==============================================================================
--- llvm/trunk/utils/gn/secondary/BUILD.gn (original)
+++ llvm/trunk/utils/gn/secondary/BUILD.gn Fri Dec 21 19:15:56 2018
@@ -8,6 +8,7 @@ group("default") {
"//clang/lib/Driver",
"//clang/lib/Frontend",
"//clang/lib/Frontend/Rewrite",
+ "//clang/lib/FrontendTool",
"//clang/lib/Index",
"//clang/lib/Parse",
"//clang/lib/Serialization",
Added: llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn?rev=349988&view=auto
==============================================================================
--- llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn (added)
+++ llvm/trunk/utils/gn/secondary/clang/lib/FrontendTool/BUILD.gn Fri Dec 21 19:15:56 2018
@@ -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",
+ ]
+}
More information about the llvm-commits
mailing list