Skip to content

Commit dc8c60f

Browse files
committed
Always use a param file when calling into rustc.
The argument list seems to constantly overflow on Windows (for reasons that I don't really understand since `use_param_file` should dynamically switch to using a param file in these cases), so always generate a param file.
1 parent 8c0ece8 commit dc8c60f

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
@@ -585,7 +585,7 @@ def construct_arguments(
585585
# Rustc arguments
586586
rustc_flags = ctx.actions.args()
587587
rustc_flags.set_param_file_format("multiline")
588-
rustc_flags.use_param_file("@%s", use_always = False)
588+
rustc_flags.use_param_file("@%s", use_always = True)
589589
rustc_flags.add(crate_info.root)
590590
rustc_flags.add("--crate-name=" + crate_info.name)
591591
rustc_flags.add("--crate-type=" + crate_info.type)

0 commit comments

Comments
 (0)