File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -644,7 +644,7 @@ fn compute_metadata<'a, 'cfg>(
644
644
645
645
fn hash_rustc_version ( bcx : & BuildContext < ' _ , ' _ > , hasher : & mut SipHasher ) {
646
646
let vers = & bcx. rustc ( ) . version ;
647
- if vers. pre . is_empty ( ) {
647
+ if vers. pre . is_empty ( ) || bcx . config . cli_unstable ( ) . separate_nightlies {
648
648
// For stable, keep the artifacts separate. This helps if someone is
649
649
// testing multiple versions, to avoid recompiles.
650
650
bcx. rustc ( ) . verbose_version . hash ( hasher) ;
Original file line number Diff line number Diff line change @@ -343,6 +343,7 @@ pub struct CliUnstable {
343
343
pub jobserver_per_rustc : bool ,
344
344
pub features : Option < Vec < String > > ,
345
345
pub crate_versions : bool ,
346
+ pub separate_nightlies : bool ,
346
347
}
347
348
348
349
impl CliUnstable {
@@ -420,6 +421,7 @@ impl CliUnstable {
420
421
"jobserver-per-rustc" => self . jobserver_per_rustc = parse_empty ( k, v) ?,
421
422
"features" => self . features = Some ( parse_features ( v) ) ,
422
423
"crate-versions" => self . crate_versions = parse_empty ( k, v) ?,
424
+ "separate-nightlies" => self . separate_nightlies = parse_empty ( k, v) ?,
423
425
_ => bail ! ( "unknown `-Z` flag specified: {}" , k) ,
424
426
}
425
427
You can’t perform that action at this time.
0 commit comments