From 24f1569c85e3f6958aaa9d36b3684bcd2da2a262 Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Mon, 22 May 2023 18:35:56 +0000 Subject: [PATCH] Enable overflow-checks on CI Unlike rustc with cargo debug-assertions = true doesn't imply overflow-checks = true --- build_system/build_backend.rs | 1 + 1 file changed, 1 insertion(+) 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"); } }