Skip to content

Commit b60a2b9

Browse files
committed
[gn] port 975eca0 (-gen-lldb-sbapi-dwarf-enum)
1 parent 35e6bae commit b60a2b9

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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"
10+
}
11+

llvm/utils/gn/secondary/lldb/source/API/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ target(liblldb_type, "liblldb") {
1717

1818
output_name = "liblldb" # XXX lib prefix?
1919
configs += [ "//llvm/utils/gn/build:lldb_code" ]
20+
public_deps = [ "//lldb/include/lldb/API:SBLanguages" ]
2021
deps = [
2122
"//lldb/include/lldb/Host:Config",
2223
"//lldb/source/Breakpoint",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ executable("lldb-tblgen") {
66
sources = [
77
"LLDBOptionDefEmitter.cpp",
88
"LLDBPropertyDefEmitter.cpp",
9+
"LLDBSBAPIDWARFEnum.cpp",
910
"LLDBTableGen.cpp",
1011
"LLDBTableGenUtils.cpp",
1112
]

0 commit comments

Comments
 (0)