File tree 4 files changed +25
-2
lines changed
4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,12 @@ jobs:
171
171
x86_64-gnu-nopt :
172
172
IMAGE : x86_64-gnu-nopt
173
173
174
- x86_64-gnu-distcheck :
174
+ x86_64-gnu-distcheck-1 :
175
175
IMAGE : x86_64-gnu-distcheck
176
+ SCRIPT : ./x.py test distcheck --distcheck-make ci-subset-1
177
+ x86_64-gnu-distcheck-2 :
178
+ IMAGE : x86_64-gnu-distcheck
179
+ SCRIPT : ./x.py test distcheck --distcheck-make ci-subset-2
176
180
177
181
mingw-check :
178
182
IMAGE : mingw-check
Original file line number Diff line number Diff line change @@ -598,6 +598,7 @@ fn test_with_no_doc_stage0() {
598
598
bless : false ,
599
599
compare_mode : None ,
600
600
rustfix_coverage : false ,
601
+ distcheck_make : None ,
601
602
} ;
602
603
603
604
let build = Build :: new ( config) ;
@@ -640,6 +641,7 @@ fn test_exclude() {
640
641
bless : false ,
641
642
compare_mode : None ,
642
643
rustfix_coverage : false ,
644
+ distcheck_make : None ,
643
645
} ;
644
646
645
647
let build = Build :: new ( config) ;
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ pub enum Subcommand {
63
63
fail_fast : bool ,
64
64
doc_tests : DocTests ,
65
65
rustfix_coverage : bool ,
66
+ distcheck_make : Option < String > ,
66
67
} ,
67
68
Bench {
68
69
paths : Vec < PathBuf > ,
@@ -205,6 +206,12 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`"
205
206
"enable this to generate a Rustfix coverage file, which is saved in \
206
207
`/<build_base>/rustfix_missing_coverage.txt`",
207
208
) ;
209
+ opts. optopt (
210
+ "" ,
211
+ "distcheck-make" ,
212
+ "the Makefile target to use for distcheck (default: check)" ,
213
+ "MAKEFILE TARGET" ,
214
+ ) ;
208
215
}
209
216
"bench" => {
210
217
opts. optmulti ( "" , "test-args" , "extra arguments" , "ARGS" ) ;
@@ -412,6 +419,7 @@ Arguments:
412
419
} else {
413
420
DocTests :: Yes
414
421
} ,
422
+ distcheck_make : matches. opt_str ( "distcheck-make" ) ,
415
423
} ,
416
424
"bench" => Subcommand :: Bench {
417
425
paths,
@@ -524,6 +532,15 @@ impl Subcommand {
524
532
_ => None ,
525
533
}
526
534
}
535
+
536
+ pub fn distcheck_make ( & self ) -> Option < & str > {
537
+ match * self {
538
+ Subcommand :: Test {
539
+ ref distcheck_make, ..
540
+ } => distcheck_make. as_ref ( ) . map ( |s| s. as_str ( ) ) ,
541
+ _ => None ,
542
+ }
543
+ }
527
544
}
528
545
529
546
fn split ( s : & [ String ] ) -> Vec < String > {
Original file line number Diff line number Diff line change @@ -1987,7 +1987,7 @@ impl Step for Distcheck {
1987
1987
) ;
1988
1988
builder. run (
1989
1989
Command :: new ( build_helper:: make ( & builder. config . build ) )
1990
- . arg ( "check" )
1990
+ . arg ( builder . config . cmd . distcheck_make ( ) . unwrap_or ( "check" ) )
1991
1991
. current_dir ( & dir) ,
1992
1992
) ;
1993
1993
You can’t perform that action at this time.
0 commit comments