From deb5de4a57e53ed11def9142b296b57aa83c8b8f Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sun, 1 Mar 2020 01:38:02 +0000 Subject: [PATCH] Use thin LTO --- core/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/build.gradle b/core/build.gradle index ebc886a133..10edbd03fb 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -64,7 +64,7 @@ cargo { noDefaultBut "sodium", "android", "rc4", "aes-cfb", "aes-ctr", "camellia-cfb", "openssl-vendored" } exec { spec, toolchain -> - spec.environment("RUSTFLAGS", "-C link-arg=-o -C link-arg=target/${toolchain.target}/$profile/lib${libname}.so") + spec.environment("RUSTFLAGS", "-C lto=thin -C link-arg=-o -C link-arg=target/${toolchain.target}/$profile/lib${libname}.so") } }