Skip to content

Commit

Permalink
[Bazel] Fix for Enable multicall driver
Browse files Browse the repository at this point in the history
  • Loading branch information
steelannelida authored and Andrés Villegas committed Aug 17, 2023
1 parent d5ca900 commit 8f4a0b7
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3065,7 +3065,7 @@ cc_binary(
srcs = glob([
"tools/dsymutil/*.cpp",
"tools/dsymutil/*.h",
]),
]) + ["dsymutil-driver.cpp"],
copts = llvm_copts,
stamp = 0,
deps = [
Expand Down Expand Up @@ -3930,12 +3930,21 @@ gentbl(
td_srcs = ["include/llvm/Option/OptParser.td"],
)

expand_template(
name = "ml_main",
out = "llvm-ml-driver.cpp",
substitutions = {
"@TOOL_NAME@": "llvm_ml",
},
template = "cmake/modules/llvm-driver-template.cpp.in",
)

cc_binary(
name = "llvm-ml",
srcs = glob([
"tools/llvm-ml/*.cpp",
"tools/llvm-ml/*.h",
]),
]) + ["llvm-ml-driver.cpp"],
copts = llvm_copts,
stamp = 0,
deps = [
Expand Down Expand Up @@ -4172,12 +4181,21 @@ binary_alias(
binary = ":llvm-objcopy",
)

expand_template(
name = "objdump_main",
out = "llvm-objdump-driver.cpp",
substitutions = {
"@TOOL_NAME@": "llvm_objdump",
},
template = "cmake/modules/llvm-driver-template.cpp.in",
)

cc_binary(
name = "llvm-objdump",
srcs = glob([
"tools/llvm-objdump/*.cpp",
"tools/llvm-objdump/*.h",
]),
]) + ["llvm-objdump-driver.cpp"],
copts = llvm_copts,
stamp = 0,
deps = [
Expand Down Expand Up @@ -4577,12 +4595,21 @@ gentbl(
td_srcs = ["include/llvm/Option/OptParser.td"],
)

expand_template(
name = "symbolizer_main",
out = "llvm-symbolizer-driver.cpp",
substitutions = {
"@TOOL_NAME@": "llvm_symbolizer",
},
template = "cmake/modules/llvm-driver-template.cpp.in",
)

cc_binary(
name = "llvm-symbolizer",
srcs = glob([
"tools/llvm-symbolizer/*.cpp",
"tools/llvm-symbolizer/*.h",
]),
]) + [ "llvm-symbolizer-driver.cpp"],
copts = llvm_copts,
stamp = 0,
deps = [
Expand Down

0 comments on commit 8f4a0b7

Please sign in to comment.