Skip to content

Commit 8bec964

Browse files
authored
[lldb][bazel] Fix BUILD after dcbf0fc. (#90825)
1 parent 15027be commit 8bec964

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

utils/bazel/llvm-project-overlay/lldb/BUILD.bazel

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -183,18 +183,17 @@ cc_binary(
183183
],
184184
)
185185

186-
gentbl_cc_library(
186+
py_binary(
187+
name = "generate-sbapi-dwarf-enum",
188+
srcs = ["scripts/generate-sbapi-dwarf-enum.py"],
189+
)
190+
191+
genrule(
187192
name = "lldb-sbapi-dwarf-enums",
188-
strip_include_prefix = "include",
189-
tbl_outs = [
190-
(
191-
["-gen-lldb-sbapi-dwarf-enum"],
192-
"include/lldb/API/SBLanguages.h",
193-
),
194-
],
195-
tblgen = ":lldb-tblgen",
196-
td_file = "//llvm:include/llvm/BinaryFormat/Dwarf.def",
197-
deps = [],
193+
srcs = ["//llvm:include/llvm/BinaryFormat/Dwarf.def"],
194+
outs = ["include/lldb/API/SBLanguages.h"],
195+
cmd = "$(location :generate-sbapi-dwarf-enum) $(location //llvm:include/llvm/BinaryFormat/Dwarf.def) --output $@",
196+
tools = [":generate-sbapi-dwarf-enum"],
198197
)
199198

200199
cc_library(
@@ -203,10 +202,9 @@ cc_library(
203202
"source/API/**/*.cpp",
204203
"source/API/**/*.h",
205204
]),
206-
hdrs = glob(["include/lldb/API/**/*.h"]),
205+
hdrs = glob(["include/lldb/API/**/*.h"]) + [":lldb-sbapi-dwarf-enums"],
207206
strip_include_prefix = "include",
208207
deps = [
209-
":lldb-sbapi-dwarf-enums",
210208
":Breakpoint",
211209
":Commands",
212210
":Core",
@@ -284,10 +282,9 @@ cc_library(
284282
cc_library(
285283
name = "Expression",
286284
srcs = glob(["source/Expression/**/*.cpp"]),
287-
hdrs = glob(["include/lldb/Expression/**/*.h"]),
285+
hdrs = glob(["include/lldb/Expression/**/*.h"]) + [":lldb-sbapi-dwarf-enums"],
288286
strip_include_prefix = "include",
289287
deps = [
290-
":lldb-sbapi-dwarf-enums",
291288
":Core",
292289
":Headers",
293290
":Host",
@@ -361,12 +358,9 @@ cc_library(
361358

362359
cc_library(
363360
name = "ExpressionHeaders",
364-
hdrs = glob(["include/lldb/Expression/**/*.h"]),
361+
hdrs = glob(["include/lldb/Expression/**/*.h"]) + [":lldb-sbapi-dwarf-enums"],
365362
strip_include_prefix = "include",
366-
deps = [
367-
":lldb-sbapi-dwarf-enums",
368-
"//llvm:ExecutionEngine"
369-
],
363+
deps = ["//llvm:ExecutionEngine"],
370364
)
371365

372366
cc_library(

0 commit comments

Comments
 (0)