File tree Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Expand file tree Collapse file tree 4 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,12 @@ jobs:
171171 x86_64-gnu-nopt :
172172 IMAGE : x86_64-gnu-nopt
173173
174- x86_64-gnu-distcheck :
174+ x86_64-gnu-distcheck-1 :
175175 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
176180
177181 mingw-check :
178182 IMAGE : mingw-check
Original file line number Diff line number Diff line change @@ -598,6 +598,7 @@ fn test_with_no_doc_stage0() {
598598 bless : false ,
599599 compare_mode : None ,
600600 rustfix_coverage : false ,
601+ distcheck_make : None ,
601602 } ;
602603
603604 let build = Build :: new ( config) ;
@@ -640,6 +641,7 @@ fn test_exclude() {
640641 bless : false ,
641642 compare_mode : None ,
642643 rustfix_coverage : false ,
644+ distcheck_make : None ,
643645 } ;
644646
645647 let build = Build :: new ( config) ;
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ pub enum Subcommand {
6363 fail_fast : bool ,
6464 doc_tests : DocTests ,
6565 rustfix_coverage : bool ,
66+ distcheck_make : Option < String > ,
6667 } ,
6768 Bench {
6869 paths : Vec < PathBuf > ,
@@ -205,6 +206,12 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`"
205206 "enable this to generate a Rustfix coverage file, which is saved in \
206207 `/<build_base>/rustfix_missing_coverage.txt`",
207208 ) ;
209+ opts. optopt (
210+ "" ,
211+ "distcheck-make" ,
212+ "the Makefile target to use for distcheck (default: check)" ,
213+ "MAKEFILE TARGET" ,
214+ ) ;
208215 }
209216 "bench" => {
210217 opts. optmulti ( "" , "test-args" , "extra arguments" , "ARGS" ) ;
@@ -412,6 +419,7 @@ Arguments:
412419 } else {
413420 DocTests :: Yes
414421 } ,
422+ distcheck_make : matches. opt_str ( "distcheck-make" ) ,
415423 } ,
416424 "bench" => Subcommand :: Bench {
417425 paths,
@@ -524,6 +532,15 @@ impl Subcommand {
524532 _ => None ,
525533 }
526534 }
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+ }
527544}
528545
529546fn split ( s : & [ String ] ) -> Vec < String > {
Original file line number Diff line number Diff line change @@ -1987,7 +1987,7 @@ impl Step for Distcheck {
19871987 ) ;
19881988 builder. run (
19891989 Command :: new ( build_helper:: make ( & builder. config . build ) )
1990- . arg ( "check" )
1990+ . arg ( builder . config . cmd . distcheck_make ( ) . unwrap_or ( "check" ) )
19911991 . current_dir ( & dir) ,
19921992 ) ;
19931993
You can’t perform that action at this time.
0 commit comments