File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -644,7 +644,7 @@ fn compute_metadata<'a, 'cfg>(
644644
645645fn hash_rustc_version ( bcx : & BuildContext < ' _ , ' _ > , hasher : & mut SipHasher ) {
646646 let vers = & bcx. rustc ( ) . version ;
647- if vers. pre . is_empty ( ) {
647+ if vers. pre . is_empty ( ) || bcx . config . cli_unstable ( ) . separate_nightlies {
648648 // For stable, keep the artifacts separate. This helps if someone is
649649 // testing multiple versions, to avoid recompiles.
650650 bcx. rustc ( ) . verbose_version . hash ( hasher) ;
Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ pub struct CliUnstable {
343343 pub jobserver_per_rustc : bool ,
344344 pub features : Option < Vec < String > > ,
345345 pub crate_versions : bool ,
346+ pub separate_nightlies : bool ,
346347}
347348
348349impl CliUnstable {
@@ -420,6 +421,7 @@ impl CliUnstable {
420421 "jobserver-per-rustc" => self . jobserver_per_rustc = parse_empty ( k, v) ?,
421422 "features" => self . features = Some ( parse_features ( v) ) ,
422423 "crate-versions" => self . crate_versions = parse_empty ( k, v) ?,
424+ "separate-nightlies" => self . separate_nightlies = parse_empty ( k, v) ?,
423425 _ => bail ! ( "unknown `-Z` flag specified: {}" , k) ,
424426 }
425427
You can’t perform that action at this time.
0 commit comments