Abort on panic in release builds

Use the abort panic strategy for release builds to reduce generated
code. A panic now terminates the process without unwinding the stack.

An isolated five-run comparison across three workloads reduced .text
size by 12.7% on the local x86-64 machine and 13.6% on Fedora AArch64.
The measured link-time differences were small relative to run-to-run
variation.

Validated release builds for all 20 targets and successful links for
all three workloads on both machines.
This commit is contained in:
Rui Ueyama committed 2026-09-11 20:10:53 +09:00
1 parent af8c689722
commit 6968a402a1
1 file changed
+1
+1
View File
@@ -37,6 +37,7 @@ zstd = "0.13"
[profile.release]
debug = 1
codegen-units = 16
panic = "abort"
[profile.dev]
opt-level = 1