about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-05-22 18:35:56 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-05-22 18:35:56 +0000
commit24f1569c85e3f6958aaa9d36b3684bcd2da2a262 (patch)
tree81cf176ba5d97246be0dec0e90f24e2b86692712
parent6900c9943d7b43692da6e54cb07821ea48fa8804 (diff)
downloadrust-24f1569c85e3f6958aaa9d36b3684bcd2da2a262.tar.gz
rust-24f1569c85e3f6958aaa9d36b3684bcd2da2a262.zip
Enable overflow-checks on CI
Unlike rustc with cargo debug-assertions = true doesn't imply overflow-checks = true
-rw-r--r--build_system/build_backend.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/build_system/build_backend.rs b/build_system/build_backend.rs
index 4b740fa2db6..d9db1d109c2 100644
--- a/build_system/build_backend.rs
+++ b/build_system/build_backend.rs
@@ -28,6 +28,7 @@ pub(crate) fn build_backend(
 
         if !is_ci_opt() {
             cmd.env("CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS", "true");
+            cmd.env("CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS", "true");
         }
     }