File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ impl StepDescription {
149
149
150
150
// Determine the targets participating in this rule.
151
151
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
154
154
} else {
155
155
& build. hosts
156
156
}
Original file line number Diff line number Diff line change @@ -347,7 +347,7 @@ impl Config {
347
347
config. keep_stage = flags. keep_stage ;
348
348
349
349
// 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 ( ) ) ;
351
351
352
352
let toml = file. map ( |file| {
353
353
let mut f = t ! ( File :: open( & file) ) ;
You can’t perform that action at this time.
0 commit comments