Skip to content

Commit c509f17

Browse files
committed
Update use of bazel_skylib run_binary to use modern naming.
1 parent c4d1b6e commit c509f17

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/bazel/rust_cxx_bridge.bzl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# buildifier: disable=module-docstring
1+
"""CXX Bridge rules."""
2+
23
load("@bazel_skylib//rules:run_binary.bzl", "run_binary")
34
load("@rules_cc//cc:defs.bzl", "cc_library")
45

@@ -31,11 +32,11 @@ def rust_cxx_bridge(name, src, deps = [], **kwargs):
3132
src + ".cc",
3233
],
3334
args = [
34-
"$(location %s)" % src,
35+
"$(execpath %s)" % src,
3536
"-o",
36-
"$(location %s.h)" % src,
37+
"$(execpath %s.h)" % src,
3738
"-o",
38-
"$(location %s.cc)" % src,
39+
"$(execpath %s.cc)" % src,
3940
],
4041
tool = "@cxx.rs//:codegen",
4142
**kwargs

0 commit comments

Comments
 (0)