File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,11 @@ export RUST_RELEASE_CHANNEL=$(releaseChannel)
105105RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL "
106106
107107if [ " $DEPLOY$DEPLOY_ALT " = " 1" ]; then
108+ if [ " $DOWNLOAD_RUSTC " = 1 ]; then
109+ echo " ERROR: " DOWNLOAD_RUSTC" should not be set in dist builders!" >&2
110+ exit 1
111+ fi
112+
108113 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
109114 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.remap-debuginfo"
110115 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --debuginfo-level-std=1"
@@ -139,6 +144,10 @@ else
139144 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-llvm-assertions"
140145 fi
141146
147+ if [ " $DOWNLOAD_RUSTC " = 1 ]; then
148+ RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.download-rustc=if-unchanged"
149+ fi
150+
142151 RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --set rust.verify-llvm-ir"
143152
144153 # When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen
You can’t perform that action at this time.
0 commit comments