From b7942bf0f6f151e172db9b1e08cf4436e8365e8b Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 28 Jul 2020 13:37:27 -0400 Subject: [PATCH] Change release build flags to optimize for size (#6907) --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index ea0e02cf95..b89523628b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,3 +8,9 @@ members = [ exclude = [ "std/hash/_wasm" ] + + +[profile.release] +codegen-units = 1 +lto = true +opt-level = 'z' # Optimize for size