Skip to content

Commit d56fa5d

Browse files
committed
enable rustc debug assertions on -alt builds
llvm assertions are already enabled and debug assertions are also useful
1 parent 7d49ae9 commit d56fa5d

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

135135
CODEGEN_BACKENDS="${CODEGEN_BACKENDS:-llvm}"
136136
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=$CODEGEN_BACKENDS"
137+
138+
# Unless explicitly disabled, we want rustc debug assertions on the -alt builds
139+
if [ "$DEPLOY_ALT" != "" ] && [ "$NO_DEBUG_ASSERTIONS" = "" ]; then
140+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"
141+
fi
137142
else
138143
# We almost always want debug assertions enabled, but sometimes this takes too
139144
# long for too little benefit, so we just turn them off.

0 commit comments

Comments
 (0)