Use linker time optimization for release builds (#47)
This reduces total package size by ~25%. There are no runtime consequences, though this does nearly double build times. But with the cargo workspace, this repo builds pretty quick. As well the same `lto` settings are already used in cosmic-comp.
This commit is contained in:
parent
cf41b2a1b5
commit
5c4aff2c9a
1 changed files with 3 additions and 0 deletions
|
|
@ -14,3 +14,6 @@ members = [
|
|||
|
||||
[patch.crates-io]
|
||||
zbus = {git = "https://gitlab.freedesktop.org/dbus/zbus", branch = "main"}
|
||||
|
||||
[profile.release]
|
||||
lto = "fat"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue