Skip to content

Commit b906217

Browse files
committed
cleanup: fix bazel build files for 668e33c
1 parent 3b2f323 commit b906217

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,12 +3522,21 @@ gentbl(
35223522
td_srcs = ["include/llvm/Option/OptParser.td"],
35233523
)
35243524

3525+
expand_template(
3526+
name = "dwp_main",
3527+
out = "llvm-dwp-driver.cpp",
3528+
substitutions = {
3529+
"@TOOL_NAME@": "llvm_dwp",
3530+
},
3531+
template = "cmake/modules/llvm-driver-template.cpp.in",
3532+
)
3533+
35253534
cc_binary(
35263535
name = "llvm-dwp",
35273536
srcs = glob([
35283537
"tools/llvm-dwp/*.cpp",
35293538
"tools/llvm-dwp/*.h",
3530-
]),
3539+
]) + ["llvm-dwp-driver.cpp"],
35313540
copts = llvm_copts,
35323541
stamp = 0,
35333542
deps = [
@@ -3725,12 +3734,21 @@ gentbl(
37253734
td_srcs = ["include/llvm/Option/OptParser.td"],
37263735
)
37273736

3737+
expand_template(
3738+
name = "libtool-darwin_main",
3739+
out = "llvm-libtool-darwin-driver.cpp",
3740+
substitutions = {
3741+
"@TOOL_NAME@": "llvm_libtool_darwin",
3742+
},
3743+
template = "cmake/modules/llvm-driver-template.cpp.in",
3744+
)
3745+
37283746
cc_binary(
37293747
name = "llvm-libtool-darwin",
37303748
srcs = glob([
37313749
"tools/llvm-libtool-darwin/*.cpp",
37323750
"tools/llvm-libtool-darwin/*.h",
3733-
]),
3751+
]) + ["llvm-libtool-darwin-driver.cpp"],
37343752
copts = llvm_copts,
37353753
stamp = 0,
37363754
deps = [

0 commit comments

Comments
 (0)