From 17fc6323c8f3fb3c8af6deb4b50d1d3759892788 Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Sat, 31 Jul 2021 13:53:56 +0800 Subject: [PATCH] Cargo.toml: lto = "thin" Refer to , building package on Debian 10+ and Ubuntu 20.04+ will fail with `lto = true`. Moreover, tested with , `lto = "thin"` working well for all support OS, including CentOS/Fedora/Debian/Ubuntu/openSUSE. Signed-off-by: Wong Hoi Sing Edison --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index cf78600c..e46c8ac3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,4 +23,4 @@ tempfile = "3" fs_extra = "1.1" [profile.release] -lto = true +lto = "thin"