Skip to content

Commit ce127e1

Browse files
committed
give a hard error if setting DOWNLOAD_RUSTC in a dist builder
these should compile from source; i have reasonable confidence in download-rustc, but not so much that i want to allow shipping it in dist artifacts.
1 parent 20f9b0c commit ce127e1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ci/run.sh

+5
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
103103
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-assertions"
104104
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.verify-llvm-ir"
105105
fi
106+
107+
if [ "$DOWNLOAD_RUSTC" = 1 ]; then
108+
echo "error: DOWNLOAD_RUSTC should not be set in dist builders!" >&2
109+
exit 1
110+
fi
106111
else
107112
# We almost always want debug assertions enabled, but sometimes this takes too
108113
# long for too little benefit, so we just turn them off.

0 commit comments

Comments
 (0)