[llvm-branch-commits] [llvm] 985739e - [gn build] fix build after a7b2847216b4f7
Nico Weber via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Dec 10 07:33:58 PST 2020
Author: Nico Weber
Date: 2020-12-10T10:28:48-05:00
New Revision: 985739ec059d23d7478ea1eee5a14e8160658c1b
URL: https://github.com/llvm/llvm-project/commit/985739ec059d23d7478ea1eee5a14e8160658c1b
DIFF: https://github.com/llvm/llvm-project/commit/985739ec059d23d7478ea1eee5a14e8160658c1b.diff
LOG: [gn build] fix build after a7b2847216b4f7
Ports 6e42a417bacb since it's now needed, and undo an accidental
deletion from d69762c404ded while here (this part is not needed to fix
the build, it's just in the vicinity).
Added:
Modified:
llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
index acb545f41986..26c9b52a1660 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenACC/BUILD.gn
@@ -6,7 +6,7 @@ tablegen("ACC") {
output_name = "ACC.h.inc"
}
-tablegen("ACC.cpp") {
+tablegen("ACCcpp") {
visibility = [ ":acc_gen" ]
args = [ "-gen-directive-gen" ]
output_name = "ACC.cpp.inc"
@@ -14,5 +14,8 @@ tablegen("ACC.cpp") {
}
group("acc_gen") {
- deps = [ ":ACC" ]
+ deps = [
+ ":ACC",
+ ":ACCcpp",
+ ]
}
diff --git a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn
index a18f8db5f5eb..6fe62a0f5a71 100644
--- a/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/include/llvm/Frontend/OpenMP/BUILD.gn
@@ -6,6 +6,13 @@ tablegen("OMP") {
output_name = "OMP.h.inc"
}
+tablegen("OMPcpp") {
+ visibility = [ ":public_tablegen" ]
+ args = [ "-gen-directive-gen" ]
+ output_name = "OMP.cpp.inc"
+ td_file = "OMP.td"
+}
+
# Groups all tablegen() calls that create .inc files that are included in
# Frontent/OpenMP's public headers (just one so far).
# //llvm/lib/Frontend/OpenMP has this as a public_dep, so targets depending on
@@ -14,5 +21,6 @@ group("public_tablegen") {
public_deps = [
# Frontend/OpenMP's public headers include OMP.h.inc.
":OMP",
+ ":OMPcpp",
]
}
More information about the llvm-branch-commits
mailing list