Skip to content

Commit

Permalink
handle DOWNLOAD_RUSTC in src/ci/run.sh
Browse files Browse the repository at this point in the history
Signed-off-by: onur-ozkan <work@onurozkan.dev>
  • Loading branch information
onur-ozkan committed Apr 1, 2024
1 parent 4e3893a commit f581ad1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f581ad1

Please sign in to comment.