File tree Expand file tree Collapse file tree 16 files changed +88
-4
lines changed
x86_64-gnu-llvm-13-stage1 Expand file tree Collapse file tree 16 files changed +88
-4
lines changed Original file line number Diff line number Diff line change @@ -391,24 +391,28 @@ jobs:
391
391
env :
392
392
RUST_CONFIGURE_ARGS : " --build=i686-pc-windows-gnu --set llvm.allow-old-toolchain"
393
393
SCRIPT : make ci-mingw-subset-1
394
+ NO_DOWNLOAD_CI_LLVM : 1
394
395
CUSTOM_MINGW : 1
395
396
os : windows-latest-xl
396
397
- name : i686-mingw-2
397
398
env :
398
399
RUST_CONFIGURE_ARGS : " --build=i686-pc-windows-gnu --set llvm.allow-old-toolchain"
399
400
SCRIPT : make ci-mingw-subset-2
401
+ NO_DOWNLOAD_CI_LLVM : 1
400
402
CUSTOM_MINGW : 1
401
403
os : windows-latest-xl
402
404
- name : x86_64-mingw-1
403
405
env :
404
406
SCRIPT : make ci-mingw-subset-1
405
407
RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-gnu --enable-profiler --set llvm.allow-old-toolchain"
408
+ NO_DOWNLOAD_CI_LLVM : 1
406
409
CUSTOM_MINGW : 1
407
410
os : windows-latest-xl
408
411
- name : x86_64-mingw-2
409
412
env :
410
413
SCRIPT : make ci-mingw-subset-2
411
414
RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-gnu --enable-profiler --set llvm.allow-old-toolchain"
415
+ NO_DOWNLOAD_CI_LLVM : 1
412
416
CUSTOM_MINGW : 1
413
417
os : windows-latest-xl
414
418
- name : dist-x86_64-msvc
@@ -433,6 +437,7 @@ jobs:
433
437
- name : dist-i686-mingw
434
438
env :
435
439
RUST_CONFIGURE_ARGS : " --build=i686-pc-windows-gnu --enable-full-tools --enable-profiler --set llvm.allow-old-toolchain"
440
+ NO_DOWNLOAD_CI_LLVM : 1
436
441
SCRIPT : python x.py dist
437
442
CUSTOM_MINGW : 1
438
443
DIST_REQUIRE_ALL_TOOLS : 1
@@ -441,6 +446,7 @@ jobs:
441
446
env :
442
447
SCRIPT : python x.py dist
443
448
RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler --set llvm.allow-old-toolchain"
449
+ NO_DOWNLOAD_CI_LLVM : 1
444
450
CUSTOM_MINGW : 1
445
451
DIST_REQUIRE_ALL_TOOLS : 1
446
452
os : windows-latest-xl
Original file line number Diff line number Diff line change @@ -990,7 +990,7 @@ impl Config {
990
990
config. llvm_from_ci = match llvm. download_ci_llvm {
991
991
Some ( StringOrBool :: String ( s) ) => {
992
992
assert ! ( s == "if-available" , "unknown option `{}` for download-ci-llvm" , s) ;
993
- crate :: native:: is_ci_llvm_available ( & config)
993
+ crate :: native:: is_ci_llvm_available ( & config, llvm_assertions . unwrap_or ( false ) )
994
994
}
995
995
Some ( StringOrBool :: Bool ( b) ) => b,
996
996
None => false ,
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ pub(crate) fn detect_llvm_sha(config: &crate::config::Config) -> String {
148
148
/// This checks both the build triple platform to confirm we're usable at all,
149
149
/// and then verifies if the current HEAD matches the detected LLVM SHA head,
150
150
/// in which case LLVM is indicated as not available.
151
- pub ( crate ) fn is_ci_llvm_available ( config : & crate :: config:: Config ) -> bool {
151
+ pub ( crate ) fn is_ci_llvm_available ( config : & crate :: config:: Config , asserts : bool ) -> bool {
152
152
// This is currently all tier 1 targets and tier 2 targets with host tools
153
153
// (since others may not have CI artifacts)
154
154
// https://doc.rust-lang.org/rustc/platform-support.html#tier-1
@@ -187,6 +187,12 @@ pub(crate) fn is_ci_llvm_available(config: &crate::config::Config) -> bool {
187
187
return false ;
188
188
}
189
189
190
+ let triple = & * config. build . triple ;
191
+ if ( triple == "aarch64-unknown-linux-gnu" || triple. contains ( "i686" ) ) && asserts {
192
+ // No alt builder for aarch64-unknown-linux-gnu today.
193
+ return false ;
194
+ }
195
+
190
196
if crate :: util:: CiEnv :: is_ci ( ) {
191
197
let llvm_sha = detect_llvm_sha ( config) ;
192
198
let head_sha = output ( config. git ( ) . arg ( "rev-parse" ) . arg ( "HEAD" ) ) ;
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ ENV PATH=$PATH:/android/sdk/platform-tools
29
29
30
30
ENV TARGETS=arm-linux-androideabi
31
31
32
+ # We are intentionally allowing an old toolchain on this builder (and that's
33
+ # incompatible with LLVM downloads today).
34
+ ENV NO_DOWNLOAD_CI_LLVM 1
35
+
32
36
ENV RUST_CONFIGURE_ARGS --arm-linux-androideabi-ndk=/android/ndk/arm-14 \
33
37
--set llvm.allow-old-toolchain
34
38
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ RUN mkdir -p /config
27
27
RUN echo "[rust]" > /config/nopt-std-config.toml
28
28
RUN echo "optimize = false" >> /config/nopt-std-config.toml
29
29
30
+ # We are intentionally allowing an old toolchain on this builder (and that's
31
+ # incompatible with LLVM downloads today).
32
+ ENV NO_DOWNLOAD_CI_LLVM 1
33
+
30
34
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu --disable-optimize-tests \
31
35
--set llvm.allow-old-toolchain
32
36
ENV SCRIPT python3 ../x.py test --stage 0 --config /config/nopt-std-config.toml library/std \
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ RUN sh /scripts/sccache.sh
23
23
COPY scripts/cmake.sh /scripts/
24
24
RUN /scripts/cmake.sh
25
25
26
+ # We are intentionally allowing an old toolchain on this builder (and that's
27
+ # incompatible with LLVM downloads today).
28
+ ENV NO_DOWNLOAD_CI_LLVM 1
26
29
ENV RUST_CONFIGURE_ARGS --build=i686-unknown-linux-gnu \
27
30
--set llvm.allow-old-toolchain
28
31
# Exclude some tests that are unlikely to be platform specific, to speed up
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ WORKDIR /
30
30
COPY scripts/sccache.sh /scripts/
31
31
RUN sh /scripts/sccache.sh
32
32
33
+ # We are disabling CI LLVM since this builder needs to build LLD, which is
34
+ # currently unsupported when downloading pre-built LLVM.
35
+ ENV NO_DOWNLOAD_CI_LLVM 1
36
+
33
37
ENV RUST_CONFIGURE_ARGS \
34
38
--musl-root-x86_64=/usr/local/x86_64-linux-musl \
35
39
--set build.nodejs=/node-v15.14.0-linux-x64/bin/node \
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ RUN sh /scripts/sccache.sh
26
26
COPY scripts/cmake.sh /scripts/
27
27
RUN /scripts/cmake.sh
28
28
29
+ # We are intentionally allowing an old toolchain on this builder (and that's
30
+ # incompatible with LLVM downloads today).
31
+ ENV NO_DOWNLOAD_CI_LLVM 1
32
+
29
33
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu \
30
34
--set llvm.allow-old-toolchain
31
35
ENV RUST_CHECK_TARGET check-aux
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ RUN sh /scripts/sccache.sh
31
31
ENV RUSTBUILD_FORCE_CLANG_BASED_TESTS 1
32
32
ENV RUN_CHECK_WITH_PARALLEL_QUERIES 1
33
33
34
+ # llvm.use-linker conflicts with downloading CI LLVM
35
+ ENV NO_DOWNLOAD_CI_LLVM 1
36
+
34
37
ENV RUST_CONFIGURE_ARGS \
35
38
--build=x86_64-unknown-linux-gnu \
36
39
--enable-debug \
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ RUN sh /scripts/sccache.sh
22
22
COPY scripts/cmake.sh /scripts/
23
23
RUN /scripts/cmake.sh
24
24
25
+ # We are intentionally allowing an old toolchain on this builder (and that's
26
+ # incompatible with LLVM downloads today).
27
+ ENV NO_DOWNLOAD_CI_LLVM 1
28
+
25
29
ENV RUST_CONFIGURE_ARGS --build=x86_64-unknown-linux-gnu --set rust.ignore-git=false \
26
30
--set llvm.allow-old-toolchain
27
31
ENV SCRIPT python3 ../x.py --stage 2 test distcheck
You can’t perform that action at this time.
0 commit comments