From 6f7cdd62b99b6278bceaab20f63e59a7316c3b2f Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Mon, 1 Apr 2024 17:44:39 +0300 Subject: [PATCH] handle `DOWNLOAD_RUSTC` in "src/ci/run.sh" Signed-off-by: onur-ozkan --- src/ci/run.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ci/run.sh b/src/ci/run.sh index 3ad04c73d3da4..557fc3936a038 100755 --- a/src/ci/run.sh +++ b/src/ci/run.sh @@ -105,6 +105,11 @@ export RUST_RELEASE_CHANNEL=$(releaseChannel) RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNEL" if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then + if [ "$DOWNLOAD_RUSTC" = 1 ]; then + echo "ERROR: "DOWNLOAD_RUSTC" should not be set in dist builders!" >&2 + exit 1 + fi + RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp" RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.remap-debuginfo" RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --debuginfo-level-std=1" @@ -139,6 +144,10 @@ else RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-assertions" fi + if [ "$DOWNLOAD_RUSTC" = 1 ]; then + RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.download-rustc=if-unchanged" + fi + RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.verify-llvm-ir" # When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen