From b5ad3a92cc7399e514f6c4a2ddfafeca79fbd5b4 Mon Sep 17 00:00:00 2001 From: Johanna Larsson Date: Fri, 25 Sep 2026 11:42:11 +0100 Subject: [PATCH] build: set tikv-jemalloc-sys opt-level to 1 `gcc` uses fortify to do bounds checking or some other important thing and in CI it's failing because it's defaulting to -o0 --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 9d13d9e..1e4b9fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -177,3 +177,7 @@ opt-level = 3 [profile.dev.package.blowfish] opt-level = 3 + +# Set the default to optimized so fortify works in CI. +[profile.dev.package.tikv-jemalloc-sys] +opt-level = 1