File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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) ) ;
You can’t perform that action at this time.
0 commit comments