enable rustc debug assertions on -alt builds

llvm assertions are already enabled and debug assertions are also useful
This commit is contained in:
Rémy Rakic 2024-09-30 16:17:50 +00:00 committed by Jakub Beránek
parent 40daf23eeb
commit 8f069e948a
No known key found for this signature in database
GPG key ID: 909CD0D26483516B

View file

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