enable rustc debug assertions on -alt builds
llvm assertions are already enabled and debug assertions are also useful
This commit is contained in:
parent
40daf23eeb
commit
8f069e948a
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue