File tree 1 file changed +8
-7
lines changed
src/bootstrap/src/core/builder
1 file changed +8
-7
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)
@@ -216,12 +217,6 @@ fn alias_and_path_for_library() {
216
217
217
218
#[ test]
218
219
fn ci_rustc_if_unchanged_logic ( ) {
219
- if env:: var_os ( "NO_DOWNLOAD_CI_RUSTC" ) . is_some_and ( |s| s == "1" || s == "true" ) {
220
- // FIXME: Find the actual reason.
221
- println ! ( "This test is incompatible in runners configured with `NO_DOWNLOAD_CI_RUSTC`." ) ;
222
- return ;
223
- }
224
-
225
220
let config = Config :: parse_inner (
226
221
Flags :: parse ( & [
227
222
"build" . to_owned ( ) ,
@@ -231,6 +226,10 @@ fn ci_rustc_if_unchanged_logic() {
231
226
|& _| Ok ( Default :: default ( ) ) ,
232
227
) ;
233
228
229
+ if !is_download_ci_available ( & config. build . triple , config. llvm_assertions ) {
230
+ return ;
231
+ }
232
+
234
233
if config. rust_info . is_from_tarball ( ) {
235
234
return ;
236
235
}
@@ -263,7 +262,9 @@ fn ci_rustc_if_unchanged_logic() {
263
262
. unwrap ( )
264
263
. success ( ) ;
265
264
266
- assert ! ( has_changes == config. download_rustc_commit. is_none( ) ) ;
265
+ if config. download_rustc_commit . is_some ( ) {
266
+ assert ! ( !has_changes) ;
267
+ }
267
268
}
268
269
269
270
mod defaults {
You can’t perform that action at this time.
0 commit comments