File tree 1 file changed +9
-2
lines changed
src/bootstrap/src/core/builder
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use super::*;
6
6
use crate :: Flags ;
7
7
use crate :: core:: build_steps:: doc:: DocumentationFormat ;
8
8
use crate :: core:: config:: Config ;
9
+ use crate :: core:: download:: is_download_ci_available;
9
10
10
11
fn configure ( cmd : & str , host : & [ & str ] , target : & [ & str ] ) -> Config {
11
12
configure_with_args ( & [ cmd. to_owned ( ) ] , host, target)
@@ -225,7 +226,9 @@ fn ci_rustc_if_unchanged_logic() {
225
226
|& _| Ok ( Default :: default ( ) ) ,
226
227
) ;
227
228
228
- if config. rust_info . is_from_tarball ( ) {
229
+ if !is_download_ci_available ( & config. build . triple , config. llvm_assertions )
230
+ || config. rust_info . is_from_tarball ( )
231
+ {
229
232
return ;
230
233
}
231
234
@@ -257,7 +260,11 @@ fn ci_rustc_if_unchanged_logic() {
257
260
. unwrap ( )
258
261
. success ( ) ;
259
262
260
- assert ! ( has_changes == config. download_rustc_commit. is_none( ) ) ;
263
+ // Make sure "if-unchanged" logic doesn't try to use CI rustc while there are changes
264
+ // in compiler and/or library.
265
+ if config. download_rustc_commit . is_some ( ) {
266
+ assert ! ( !has_changes) ;
267
+ }
261
268
}
262
269
263
270
mod defaults {
You can’t perform that action at this time.
0 commit comments