From 15534793fd3190be0f9b2a2dd0199073bbfe8243 Mon Sep 17 00:00:00 2001 From: electria Date: Mon, 28 Sep 2026 13:08:32 -0700 Subject: [PATCH] build: enable thick lto and minimize codegen-units binary size goes from 1224 to 1068 (as reported by `du result/bin/tylc`) --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a6c52cf..5793b00 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,3 +10,7 @@ thiserror = "2.0.18" version = "1.30" default-features = false features = ["std", "float"] + +[profile.release] +lto = true +codegen-units = 1