@@ -59,7 +59,7 @@ pub trait Step: 'static + Clone + Debug + PartialEq + Eq + Hash {
59
59
60
60
const DEFAULT : bool = false ;
61
61
62
- /// Run this rule for all hosts without cross compiling.
62
+ /// If true, then this rule should be skipped if --target was specified, but --host was not
63
63
const ONLY_HOSTS : bool = false ;
64
64
65
65
/// Primary function to execute this rule. Can call `builder.ensure()`
@@ -163,7 +163,7 @@ impl StepDescription {
163
163
164
164
// Determine the targets participating in this rule.
165
165
let targets = if self . only_hosts {
166
- if ! builder. config . run_host_only {
166
+ if builder. config . skip_only_host_steps {
167
167
return ; // don't run anything
168
168
} else {
169
169
& builder. hosts
@@ -1338,7 +1338,7 @@ mod __test {
1338
1338
let mut config = Config :: default_opts ( ) ;
1339
1339
// don't save toolstates
1340
1340
config. save_toolstates = None ;
1341
- config. run_host_only = true ;
1341
+ config. skip_only_host_steps = false ;
1342
1342
config. dry_run = true ;
1343
1343
// try to avoid spurious failures in dist where we create/delete each others file
1344
1344
let dir = config. out . join ( "tmp-rustbuild-tests" ) . join (
@@ -1583,7 +1583,7 @@ mod __test {
1583
1583
#[ test]
1584
1584
fn dist_with_target_flag ( ) {
1585
1585
let mut config = configure ( & [ "B" ] , & [ "C" ] ) ;
1586
- config. run_host_only = false ; // as-if --target=C was passed
1586
+ config. skip_only_host_steps = true ; // as-if --target=C was passed
1587
1587
let build = Build :: new ( config) ;
1588
1588
let mut builder = Builder :: new ( & build) ;
1589
1589
builder. run_step_descriptions ( & Builder :: get_step_descriptions ( Kind :: Dist ) , & [ ] ) ;
@@ -1831,7 +1831,7 @@ mod __test {
1831
1831
#[ test]
1832
1832
fn build_with_target_flag ( ) {
1833
1833
let mut config = configure ( & [ "B" ] , & [ "C" ] ) ;
1834
- config. run_host_only = false ;
1834
+ config. skip_only_host_steps = true ;
1835
1835
let build = Build :: new ( config) ;
1836
1836
let mut builder = Builder :: new ( & build) ;
1837
1837
builder. run_step_descriptions ( & Builder :: get_step_descriptions ( Kind :: Build ) , & [ ] ) ;
0 commit comments