Skip to content

Commit 4236c51

Browse files
committed
Expose the output directory from cargo_build_script
This is handy for things like I described at bazelbuild#1571 (comment), where I needed to depend on the out_dir via other rules.
1 parent d288ed6 commit 4236c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cargo/cargo_build_script.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def _build_script_impl(ctx):
236236
link_flags = link_flags,
237237
link_search_paths = link_search_paths,
238238
),
239-
OutputGroupInfo(streams = depset([streams.stdout, streams.stderr])),
239+
OutputGroupInfo(streams = depset([streams.stdout, streams.stderr]), out_dir = depset([out_dir])),
240240
]
241241

242242
_build_script_run = rule(

0 commit comments

Comments
 (0)