Make release builds using LTO (#396)

This commit is contained in:
Filip Andersson 2023-03-29 23:13:03 +02:00 committed by GitHub
parent d2c05c0e48
commit dffaef0832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,5 +49,9 @@ debug = 0
[profile.dev.package."*"]
opt-level = 2
[profile.release]
lto = "thin"
codegen-units = 1
[profile.release.package."typst-cli"]
strip = true