[snowpatch] [PATCH] Cargo.toml: enable link-time optimisation
Andrew Donnellan
andrew.donnellan at au1.ibm.com
Fri Jun 3 07:44:52 AEST 2016
Enable link-time optimisation for release builds. Currently, this shrinks
the output binary by around 200 KB.
Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
---
Cargo.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Cargo.toml b/Cargo.toml
index bef3c88..668d094 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -25,6 +25,9 @@ license = "GPL-2.0+"
[[bin]]
name = "snowpatch"
+[profile.release]
+lto = true
+
[dependencies]
hyper = ">0.9.2" # 0.9.2 or later required for proxy support
git2 = "0.3"
--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan at au1.ibm.com IBM Australia Limited
More information about the snowpatch
mailing list