From dbf3778d1a823efb27be8b25cc70f50ef221ca66 Mon Sep 17 00:00:00 2001 From: David Meister Date: Thu, 10 Sep 2020 14:16:39 +0400 Subject: [PATCH] fix missing lto --- rust/config.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/config.nix b/rust/config.nix index 80cc5caa..ad9d61c0 100644 --- a/rust/config.nix +++ b/rust/config.nix @@ -42,6 +42,8 @@ let # @see https://github.com/rust-unofficial/patterns/blob/master/anti_patterns/deny-warnings.md deny = "warnings"; + lto = "thinlto"; + # significantly improves cache hit rate when recompiling # much more reliable than default timestamp based compiler caching # often (e.g. on CI/windows) we lose timestamp info from the OS