Add custom profile with fat lto

This commit is contained in:
hodasemi 2023-01-30 15:12:04 +01:00
parent 10f75c9537
commit 9e11312d04
2 changed files with 5 additions and 1 deletions

View file

@ -21,3 +21,7 @@ paste = "1.0.11"
serde = "1.0.152" serde = "1.0.152"
serde_json = "1.0.91" serde_json = "1.0.91"
ringbuf = "0.3.2" ringbuf = "0.3.2"
[profile.release-lto]
inherits = "release"
lto = true

View file

@ -17,7 +17,7 @@ build() {
cd ${_pkgbase} cd ${_pkgbase}
# build binaries # build binaries
cargo build --release cargo build --profile release-lto
} }
package() { package() {