[llvm] 75473cf - [gn] port c51095f51b77 (InstallAPI diag tablegen)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 17 16:52:49 PDT 2024
Author: Nico Weber
Date: 2024-03-17T19:51:41-04:00
New Revision: 75473cf07e1b62325412843d58212ad896cba677
URL: https://github.com/llvm/llvm-project/commit/75473cf07e1b62325412843d58212ad896cba677
DIFF: https://github.com/llvm/llvm-project/commit/75473cf07e1b62325412843d58212ad896cba677.diff
LOG: [gn] port c51095f51b77 (InstallAPI diag tablegen)
Added:
Modified:
llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
llvm/utils/gn/secondary/clang/tools/clang-installapi/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
index d484ff9cddd91c..b18b109dcff56d 100644
--- a/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/include/clang/Basic/BUILD.gn
@@ -25,6 +25,7 @@ diag_groups = [
"CrossTU",
"Driver",
"Frontend",
+ "InstallAPI",
"Lex",
"Parse",
"Refactoring",
diff --git a/llvm/utils/gn/secondary/clang/tools/clang-installapi/BUILD.gn b/llvm/utils/gn/secondary/clang/tools/clang-installapi/BUILD.gn
index 4f6895181f552a..89f0107686f91d 100644
--- a/llvm/utils/gn/secondary/clang/tools/clang-installapi/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/tools/clang-installapi/BUILD.gn
@@ -1,8 +1,15 @@
+import("//llvm/utils/TableGen/tablegen.gni")
import("//llvm/utils/gn/build/driver_executable.gni")
+tablegen("InstallAPIOpts") {
+ visibility = [ ":clang-installapi" ]
+ args = [ "-gen-opt-parser-defs" ]
+}
+
driver_executable("clang-installapi") {
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
+ ":InstallAPIOpts",
"//clang/lib/Driver",
"//clang/lib/Frontend",
"//clang/lib/InstallAPI",
@@ -10,6 +17,7 @@ driver_executable("clang-installapi") {
"//llvm/lib/Support",
"//llvm/lib/TargetParser",
"//llvm/lib/TextAPI",
+ "//llvm/lib/TextAPI/BinaryReader",
]
sources = [
"ClangInstallAPI.cpp",
More information about the llvm-commits
mailing list