Skip to content

Commit

Permalink
Cargo.toml: lto = "thin"
Browse files Browse the repository at this point in the history
Refer to <nabijaczleweli/systemd-zram-generator.deb@8f2f3fa>,
building package on Debian 10+ and Ubuntu 20.04+ will fail with `lto = true`.

Moreover, tested with
<https://build.opensuse.org/package/show/home:alvistack:systemd/zram-generator>,
`lto = "thin"` working well for all support OS, including
CentOS/Fedora/Debian/Ubuntu/openSUSE.

Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
  • Loading branch information
hswong3i authored and keszybz committed Aug 8, 2021
1 parent 7a6ae57 commit 17fc632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ tempfile = "3"
fs_extra = "1.1"

[profile.release]
lto = true
lto = "thin"

0 comments on commit 17fc632

Please sign in to comment.