Skip to content

Commit

Permalink
Pass args after -- to subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
clubby789 committed Mar 7, 2023
1 parent b17ae5b commit de19c42
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,7 @@ impl Config {

// Set flags.
config.paths = std::mem::take(&mut flags.paths);
config.free_args = std::mem::take(&mut flags.free_args);
config.exclude = flags.exclude.into_iter().map(|path| TaskPath::parse(path)).collect();
config.include_default_paths = flags.include_default_paths;
config.rustc_error_format = flags.error_format;
Expand Down
3 changes: 1 addition & 2 deletions src/bootstrap/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ impl Subcommand {
}
}

pub fn only_modified(
&self) -> bool {
pub fn only_modified(&self) -> bool {
match *self {
Subcommand::Test { only_modified, .. } => only_modified,
_ => false,
Expand Down
1 change: 0 additions & 1 deletion src/bootstrap/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ impl Step for Miri {
miri.arg("--").arg("--target").arg(target.rustc_target_arg());
miri.args(builder.config.cmd.args());
miri.args(&builder.config.free_args);

// miri tests need to know about the stage sysroot
miri.env("MIRI_SYSROOT", &miri_sysroot);

Expand Down

0 comments on commit de19c42

Please sign in to comment.