Skip to content

Commit 5942456

Browse files
committed
pass compilation mode and rustc path to worker to namespace the cache
1 parent bce5318 commit 5942456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/private/rustc.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def rustc_compile_action(
491491
outputs = [crate_info.output],
492492
tools = [ctx.executable._process_wrapper],
493493
env = env,
494-
arguments = [ctx.executable._process_wrapper.path, ctx.workspace_name, args],
494+
arguments = [ctx.executable._process_wrapper.path, toolchain.rustc.path, ctx.var["COMPILATION_MODE"], args],
495495
mnemonic = "Rustc",
496496
execution_requirements = { "supports-workers": "1" },
497497
progress_message = "Compiling Rust {} {}{} ({} files)".format(

0 commit comments

Comments
 (0)