summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-07-28 13:37:27 -0400
committerGitHub <noreply@github.com>2020-07-28 13:37:27 -0400
commitb7942bf0f6f151e172db9b1e08cf4436e8365e8b (patch)
tree8f034567d61760da94484af078ae3dc7b446ac94
parent076547fbbb52b1df9d6db36dd72353bffa9e4a8b (diff)
Change release build flags to optimize for size (#6907)
-rw-r--r--Cargo.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index ea0e02cf9..b89523628 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