Skip to content

Commit 29a8529

Browse files
Refactor run_host_only to have the proper effect.
Previously it was set to true when we didn't run HOSTS steps.
1 parent 9cfc73c commit 29a8529

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/bootstrap/builder.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ impl StepDescription {
149149

150150
// Determine the targets participating in this rule.
151151
let targets = if self.only_hosts {
152-
if build.config.run_host_only {
153-
&[]
152+
if !build.config.run_host_only {
153+
return; // don't run anything
154154
} else {
155155
&build.hosts
156156
}

src/bootstrap/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ impl Config {
347347
config.keep_stage = flags.keep_stage;
348348

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

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

0 commit comments

Comments
 (0)