diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-09-30 16:17:50 +0000 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-06-10 12:17:05 +0200 |
| commit | 8f069e948a81357d8fa38fe359b06afeeeaed622 (patch) | |
| tree | f12f56b3c948da18e191a18cd4d5a4a1978c668b | |
| parent | 40daf23eeb711dadf140b2536e67e3ff4c999196 (diff) | |
| download | rust-8f069e948a81357d8fa38fe359b06afeeeaed622.tar.gz rust-8f069e948a81357d8fa38fe359b06afeeeaed622.zip | |
enable rustc debug assertions on -alt builds
llvm assertions are already enabled and debug assertions are also useful
| -rwxr-xr-x | src/ci/run.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh index e0c00dc1925..a6721a818b3 100755 --- a/src/ci/run.sh +++ b/src/ci/run.sh @@ -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. |
