Skip to content

Commit 9b9a2a2

Browse files
committed
[gn] port dcbf0fc (SBLanguages.h python)
1 parent 46a5de6 commit 9b9a2a2

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import("//lldb/utils/TableGen/lldb_tablegen.gni")
2-
3-
lldb_tablegen("SBLanguages") {
4-
args = [ "-gen-lldb-sbapi-dwarf-enum" ]
5-
6-
# See discussion on https://github.com/llvm/llvm-project/pull/89981 for
7-
# why this runs tblgen on a .def file.
8-
td_file = "//llvm/include/llvm/BinaryFormat/Dwarf.def"
9-
output_name = "SBLanguages.h"
1+
action("SBLanguages") {
2+
script = "//lldb/scripts/generate-sbapi-dwarf-enum.py"
3+
outputs = [ "$target_gen_dir/SBLanguages.h" ]
4+
sources = [ "//llvm/include/llvm/BinaryFormat/Dwarf.def" ]
5+
args = [
6+
rebase_path(sources[0], root_build_dir),
7+
"-o",
8+
rebase_path(outputs[0], root_build_dir),
9+
]
1010
}
11-

llvm/utils/gn/secondary/lldb/utils/TableGen/BUILD.gn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ executable("lldb-tblgen") {
66
sources = [
77
"LLDBOptionDefEmitter.cpp",
88
"LLDBPropertyDefEmitter.cpp",
9-
"LLDBSBAPIDWARFEnum.cpp",
109
"LLDBTableGen.cpp",
1110
"LLDBTableGenUtils.cpp",
1211
]

0 commit comments

Comments
 (0)