[llvm] 9b9a2a2 - [gn] port dcbf0fcd0d55 (SBLanguages.h python)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu May 2 07:42:20 PDT 2024
Author: Nico Weber
Date: 2024-05-02T10:42:12-04:00
New Revision: 9b9a2a2fd0aaed6704f75adfcde0d85e65008601
URL: https://github.com/llvm/llvm-project/commit/9b9a2a2fd0aaed6704f75adfcde0d85e65008601
DIFF: https://github.com/llvm/llvm-project/commit/9b9a2a2fd0aaed6704f75adfcde0d85e65008601.diff
LOG: [gn] port dcbf0fcd0d55 (SBLanguages.h python)
Added:
Modified:
llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn
llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn b/llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn
index 18726255e6a4b9..2fe295d136569d 100644
--- a/llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn
+++ b/llvm/utils/gn/secondary/lldb/include/lldb/API/BUILD.gn
@@ -1,11 +1,10 @@
-import("//lldb/utils/TableGen/lldb_tablegen.gni")
-
-lldb_tablegen("SBLanguages") {
- args = [ "-gen-lldb-sbapi-dwarf-enum" ]
-
- # See discussion on https://github.com/llvm/llvm-project/pull/89981 for
- # why this runs tblgen on a .def file.
- td_file = "//llvm/include/llvm/BinaryFormat/Dwarf.def"
- output_name = "SBLanguages.h"
+action("SBLanguages") {
+ script = "//lldb/scripts/generate-sbapi-dwarf-enum.py"
+ outputs = [ "$target_gen_dir/SBLanguages.h" ]
+ sources = [ "//llvm/include/llvm/BinaryFormat/Dwarf.def" ]
+ args = [
+ rebase_path(sources[0], root_build_dir),
+ "-o",
+ rebase_path(outputs[0], root_build_dir),
+ ]
}
-
diff --git a/llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn b/llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn
index bc9f6903a288a8..37305d1de66cac 100644
--- a/llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn
+++ b/llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn
@@ -6,7 +6,6 @@ executable("lldb-tblgen") {
sources = [
"LLDBOptionDefEmitter.cpp",
"LLDBPropertyDefEmitter.cpp",
- "LLDBSBAPIDWARFEnum.cpp",
"LLDBTableGen.cpp",
"LLDBTableGenUtils.cpp",
]
More information about the llvm-commits
mailing list