@@ -423,7 +423,7 @@ impl Config {
423
423
self . download_toolchain (
424
424
& version,
425
425
"ci-rustc" ,
426
- commit,
426
+ & format ! ( "{ commit}-{}" , self . llvm_assertions ) ,
427
427
& extra_components,
428
428
Self :: download_ci_component,
429
429
) ;
@@ -499,8 +499,15 @@ impl Config {
499
499
500
500
/// Download a single component of a CI-built toolchain (not necessarily a published nightly).
501
501
// NOTE: intentionally takes an owned string to avoid downloading multiple times by accident
502
- fn download_ci_component ( & self , filename : String , prefix : & str , commit : & str ) {
503
- Self :: download_component ( self , DownloadSource :: CI , filename, prefix, commit, "ci-rustc" )
502
+ fn download_ci_component ( & self , filename : String , prefix : & str , commit_with_assertions : & str ) {
503
+ Self :: download_component (
504
+ self ,
505
+ DownloadSource :: CI ,
506
+ filename,
507
+ prefix,
508
+ commit_with_assertions,
509
+ "ci-rustc" ,
510
+ )
504
511
}
505
512
506
513
fn download_component (
@@ -520,11 +527,18 @@ impl Config {
520
527
let bin_root = self . out . join ( self . build . triple ) . join ( destination) ;
521
528
let tarball = cache_dir. join ( & filename) ;
522
529
let ( base_url, url, should_verify) = match mode {
523
- DownloadSource :: CI => (
524
- self . stage0_metadata . config . artifacts_server . clone ( ) ,
525
- format ! ( "{key}/{filename}" ) ,
526
- false ,
527
- ) ,
530
+ DownloadSource :: CI => {
531
+ let dist_server = if self . llvm_assertions {
532
+ self . stage0_metadata . config . artifacts_with_llvm_assertions_server . clone ( )
533
+ } else {
534
+ self . stage0_metadata . config . artifacts_server . clone ( )
535
+ } ;
536
+ let url = format ! (
537
+ "{}/{filename}" ,
538
+ key. strip_suffix( & format!( "-{}" , self . llvm_assertions) ) . unwrap( )
539
+ ) ;
540
+ ( dist_server, url, false )
541
+ }
528
542
DownloadSource :: Dist => {
529
543
let dist_server = env:: var ( "RUSTUP_DIST_SERVER" )
530
544
. unwrap_or ( self . stage0_metadata . config . dist_server . to_string ( ) ) ;
0 commit comments