File tree 2 files changed +7
-3
lines changed 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,7 @@ impl StepDescription {
127
127
128
128
// Determine the targets participating in this rule.
129
129
let targets = if self . only_hosts {
130
- // If --target was specified but --host wasn't specified, don't run
131
- // any host-only tests.
132
- if build. config . hosts . is_empty ( ) && !build. config . targets . is_empty ( ) {
130
+ if build. config . run_host_only {
133
131
& [ ]
134
132
} else if self . only_build {
135
133
build. build_triple ( )
Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ pub struct Config {
56
56
pub profiler : bool ,
57
57
pub ignore_git : bool ,
58
58
59
+ pub run_host_only : bool ,
60
+
59
61
pub on_fail : Option < String > ,
60
62
pub stage : Option < u32 > ,
61
63
pub keep_stage : Option < u32 > ,
@@ -305,6 +307,9 @@ impl Config {
305
307
config. incremental = flags. incremental ;
306
308
config. keep_stage = flags. keep_stage ;
307
309
310
+ // If --target was specified but --host wasn't specified, don't run any host-only tests.
311
+ config. run_host_only = flags. host . is_empty ( ) && !flags. target . is_empty ( ) ;
312
+
308
313
let toml = file. map ( |file| {
309
314
let mut f = t ! ( File :: open( & file) ) ;
310
315
let mut contents = String :: new ( ) ;
@@ -351,6 +356,7 @@ impl Config {
351
356
config. targets
352
357
} ;
353
358
359
+
354
360
config. nodejs = build. nodejs . map ( PathBuf :: from) ;
355
361
config. gdb = build. gdb . map ( PathBuf :: from) ;
356
362
config. python = build. python . map ( PathBuf :: from) ;
You can’t perform that action at this time.
0 commit comments