diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -1125,5 +1125,7 @@ for build_env_file in build_env_files: process_wrapper_flags.add("--env-file", build_env_file) - process_wrapper_flags.add_all(build_flags_files, before_each = "--arg-file") + # The wrapper accepts multiple files per flag. Reduce native Windows + # command-line length without changing the files or their order. + process_wrapper_flags.add_all("--arg-file", build_flags_files)