Skip to content

Commit

Permalink
Refactor run_host_only to have the proper effect.
Browse files Browse the repository at this point in the history
Previously it was set to true when we didn't run HOSTS steps.
  • Loading branch information
Mark-Simulacrum committed Mar 9, 2018
1 parent 9cfc73c commit 29a8529
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ impl StepDescription {

// Determine the targets participating in this rule.
let targets = if self.only_hosts {
if build.config.run_host_only {
&[]
if !build.config.run_host_only {
return; // don't run anything
} else {
&build.hosts
}
Expand Down
2 changes: 1 addition & 1 deletion src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ impl Config {
config.keep_stage = flags.keep_stage;

// If --target was specified but --host wasn't specified, don't run any host-only tests.
config.run_host_only = flags.host.is_empty() && !flags.target.is_empty();
config.run_host_only = !(flags.host.is_empty() && !flags.target.is_empty());

let toml = file.map(|file| {
let mut f = t!(File::open(&file));
Expand Down

0 comments on commit 29a8529

Please sign in to comment.