File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
utils/bazel/llvm-project-overlay/llvm Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -3522,12 +3522,21 @@ gentbl(
3522
3522
td_srcs = ["include/llvm/Option/OptParser.td" ],
3523
3523
)
3524
3524
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
+
3525
3534
cc_binary (
3526
3535
name = "llvm-dwp" ,
3527
3536
srcs = glob ([
3528
3537
"tools/llvm-dwp/*.cpp" ,
3529
3538
"tools/llvm-dwp/*.h" ,
3530
- ]),
3539
+ ]) + [ "llvm-dwp-driver.cpp" ] ,
3531
3540
copts = llvm_copts ,
3532
3541
stamp = 0 ,
3533
3542
deps = [
@@ -3725,12 +3734,21 @@ gentbl(
3725
3734
td_srcs = ["include/llvm/Option/OptParser.td" ],
3726
3735
)
3727
3736
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
+
3728
3746
cc_binary (
3729
3747
name = "llvm-libtool-darwin" ,
3730
3748
srcs = glob ([
3731
3749
"tools/llvm-libtool-darwin/*.cpp" ,
3732
3750
"tools/llvm-libtool-darwin/*.h" ,
3733
- ]),
3751
+ ]) + [ "llvm-libtool-darwin-driver.cpp" ] ,
3734
3752
copts = llvm_copts ,
3735
3753
stamp = 0 ,
3736
3754
deps = [
You can’t perform that action at this time.
0 commit comments