mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-12 15:53:30 -07:00
cargo/config: build release binaries with fat lto
Reduce installer binary size with link-time optimisation.
This commit is contained in:
+3
-2
@@ -25,9 +25,10 @@ rustflags = ["-C", "target-feature=+crt-static"]
|
||||
linker = "rust-lld"
|
||||
rustflags = ["-C", "target-feature=+crt-static"]
|
||||
|
||||
# keep line numbers in stack traces for non-firmware binaries
|
||||
[profile.release]
|
||||
# keep line numbers in stack traces for non-firmware binaries
|
||||
debug = "limited"
|
||||
lto = "fat"
|
||||
strip = "debuginfo"
|
||||
|
||||
# optimizations to reduce the binary size of firmware binaries
|
||||
@@ -35,7 +36,7 @@ strip = "debuginfo"
|
||||
inherits = "release"
|
||||
strip = true
|
||||
opt-level = "z"
|
||||
lto = true
|
||||
lto = "fat"
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
debug = false
|
||||
|
||||
Reference in New Issue
Block a user