@@ -43,6 +43,7 @@ pub struct Flags {
4343 pub cmd : Subcommand ,
4444 pub incremental : bool ,
4545 pub exclude : Vec < PathBuf > ,
46+ pub rustc_error_format : Option < String > ,
4647}
4748
4849pub enum Subcommand {
@@ -118,6 +119,7 @@ To learn more about a subcommand, run `./x.py <subcommand> -h`");
118119 opts. optopt ( "" , "src" , "path to the root of the rust checkout" , "DIR" ) ;
119120 opts. optopt ( "j" , "jobs" , "number of jobs to run in parallel" , "JOBS" ) ;
120121 opts. optflag ( "h" , "help" , "print this help message" ) ;
122+ opts. optflag ( "" , "error-format" , "rustc error format" ) ;
121123
122124 // fn usage()
123125 let usage = |exit_code : i32 , opts : & Options , subcommand_help : & str , extra_help : & str | -> ! {
@@ -370,6 +372,7 @@ Arguments:
370372 verbose : matches. opt_count ( "verbose" ) ,
371373 stage,
372374 on_fail : matches. opt_str ( "on-fail" ) ,
375+ rustc_error_format : matches. opt_str ( "error-format" ) ,
373376 keep_stage : matches. opt_str ( "keep-stage" ) . map ( |j| j. parse ( ) . unwrap ( ) ) ,
374377 build : matches. opt_str ( "build" ) . map ( |s| INTERNER . intern_string ( s) ) ,
375378 host : split ( matches. opt_strs ( "host" ) )
0 commit comments