Skip to content

Commit 73d129d

Browse files
committed
Wrap run_binary args
1 parent 5a3ddf1 commit 73d129d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tools/bazel/rust_cxx_bridge.bzl

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,24 @@ def rust_cxx_bridge(
1111
name = "%s/header" % name,
1212
srcs = [src],
1313
outs = [src + ".h"],
14-
args = ["$(location %s)" % src, "-o", "$(location %s.h)" % src, "--header"],
14+
args = [
15+
"$(location %s)" % src,
16+
"-o",
17+
"$(location %s.h)" % src,
18+
"--header",
19+
],
1520
tool = "//:codegen",
1621
)
1722

1823
run_binary(
1924
name = "%s/source" % name,
2025
srcs = [src],
2126
outs = [src + ".cc"],
22-
args = ["$(location %s)" % src, "-o", "$(location %s.cc)" % src],
27+
args = [
28+
"$(location %s)" % src,
29+
"-o",
30+
"$(location %s.cc)" % src,
31+
],
2332
tool = "//:codegen",
2433
)
2534

0 commit comments

Comments
 (0)