summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2019-12-21 21:10:00 -0500
committerNico Weber <thakis@chromium.org>2019-12-21 21:10:02 -0500
commitc3d13d9c563babb94c6d1f40d28d24f193cabe6f (patch)
tree5d883294e851738fd38dd222202fd76df2d40803
parent7376d9eb38914ff7b6b5f5901d32743f0ee76b5a (diff)
downloadbcm5719-llvm-c3d13d9c563babb94c6d1f40d28d24f193cabe6f.tar.gz
bcm5719-llvm-c3d13d9c563babb94c6d1f40d28d24f193cabe6f.zip
[gn build] fold Basic:version into Basic
This now defines HAVE_VCS_VERSION_INC for all files in Basic, but now the BUILD.gn file has only a single "sources" field again, and the automerger requires that. Having the automerger work for clang/lib/Basic is a very nice to have, and the downside seems tiny.
-rw-r--r--llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn24
1 files changed, 5 insertions, 19 deletions
diff --git a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
index 27939314493..d10a640c649 100644
--- a/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
@@ -13,30 +13,12 @@ write_vcsrevision("write_vcsrevision") {
public_configs = [ ":write_vcsrevision_config" ]
}
-source_set("Version") {
- visibility = [ ":Basic" ]
-
- configs += [ "//llvm/utils/gn/build:clang_code" ]
- public_deps = [
- # public_dep because public header Version.h includes generated Version.inc.
- "//clang/include/clang/Basic:version",
- ]
- deps = [
- ":write_vcsrevision",
- "//clang/include/clang/Config",
- ]
- sources = [
- "Version.cpp",
- ]
- defines = [ "HAVE_VCS_VERSION_INC" ]
-}
-
static_library("Basic") {
output_name = "clangBasic"
configs += [ "//llvm/utils/gn/build:clang_code" ]
public_deps = [
# public_dep because public header Version.h includes generated Version.inc.
- ":Version",
+ "//clang/include/clang/Basic:version",
"//clang/include/clang/Basic:AttrList",
"//clang/include/clang/Basic:AttrSubMatchRulesList",
"//clang/include/clang/Basic:DiagnosticGroups",
@@ -44,9 +26,11 @@ static_library("Basic") {
"//clang/include/clang/Basic:diags_tablegen",
]
deps = [
+ ":write_vcsrevision",
"//clang/include/clang/Basic:AttrHasAttributeImpl",
"//clang/include/clang/Basic:arm_fp16",
"//clang/include/clang/Basic:arm_neon",
+ "//clang/include/clang/Config",
"//llvm/include/llvm/Config:llvm-config",
"//llvm/lib/IR",
"//llvm/lib/MC",
@@ -104,8 +88,10 @@ static_library("Basic") {
"Targets/X86.cpp",
"Targets/XCore.cpp",
"TokenKinds.cpp",
+ "Version.cpp",
"Warnings.cpp",
"XRayInstr.cpp",
"XRayLists.cpp",
]
+ defines = [ "HAVE_VCS_VERSION_INC" ] # For Version.cpp
}
OpenPOWER on IntegriCloud