Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 243d35c

Browse files
committedSep 30, 2024
enable rustc debug assertions on -alt builds
llvm assertions are already enabled and debug assertions are also useful
1 parent fb4aebd commit 243d35c

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
@@ -127,6 +127,11 @@ if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
127127

128128
CODEGEN_BACKENDS="${CODEGEN_BACKENDS:-llvm}"
129129
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=$CODEGEN_BACKENDS"
130+
131+
# Unless explicitly disabled, we want rustc debug assertions on the -alt builds
132+
if [ "$DEPLOY_ALT" != "" ] && [ "$NO_DEBUG_ASSERTIONS" = "" ]; then
133+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"
134+
fi
130135
else
131136
# We almost always want debug assertions enabled, but sometimes this takes too
132137
# long for too little benefit, so we just turn them off.

0 commit comments

Comments
 (0)
Failed to load comments.