build: enable thick lto and minimize codegen-units

binary size goes from 1224 to 1068
(as reported by `du result/bin/tylc`)
This commit is contained in:
electria 2026-09-28 13:08:32 -07:00
commit 15534793fd
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -10,3 +10,7 @@ thiserror = "2.0.18"
version = "1.30"
default-features = false
features = ["std", "float"]
[profile.release]
lto = true
codegen-units = 1