From b50219b6fa18df142ee7d6b0273b5a2bff880d88 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Mon, 9 Nov 2026 22:04:59 +0800 Subject: [PATCH] build: use thin LTO for release builds (#2366) --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 197b46448..bf6a10847 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -132,7 +132,9 @@ debug = false [profile.release] codegen-units = 1 -lto = true +# Thin LTO: fat LTO's whole-program link outgrew the 16 GB release runners +# (Linux arm64 was killed mid-link from v0.1.39 on). +lto = "thin" opt-level = 3 # Unwind, so a panic fails one task or command instead of quitting the IDE. panic = "unwind"