Skip to content

Commit a0b1a90

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ci/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,11 @@ if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
131131

132132
CODEGEN_BACKENDS="${CODEGEN_BACKENDS:-llvm}"
133133
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=$CODEGEN_BACKENDS"
134+
135+
# Unless explicitly disabled, we want rustc debug assertions on the -alt builds
136+
if [ "$DEPLOY_ALT" != "" ] && [ "$NO_DEBUG_ASSERTIONS" = "" ]; then
137+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-debug-assertions"
138+
fi
134139
else
135140
# We almost always want debug assertions enabled, but sometimes this takes too
136141
# long for too little benefit, so we just turn them off.

0 commit comments

Comments
 (0)