build: split release profile into opt

This commit is contained in:
Rudxain 2025-07-04 13:51:32 -04:00
commit 45ad468a0e
No known key found for this signature in database
GPG key ID: 0DAC837DDEF8E96C

View file

@ -44,9 +44,14 @@ tar = { version = "^0.4", optional = true }
win32console = "^0.1.5"
[profile.release]
lto = "thin"
codegen-units = 4
[profile.opt]
inherits = "release"
opt-level = "s"
codegen-units = 1
lto = true
lto = "fat"
strip = true
panic = "abort"