summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2022-02-03 14:30:14 +0100
committerLinus Färnstrand <faern@faern.net>2022-02-03 15:09:47 +0100
commit8f258926233cebb893d9f73bef4420ce06bc4a89 (patch)
tree92b56eaf71a304d4906295ec53e954ee5818ca90
parent69e4ca2fec576d28b1926e75aba6f6b3ebb785a9 (diff)
downloadmullvadvpn-8f258926233cebb893d9f73bef4420ce06bc4a89.tar.xz
mullvadvpn-8f258926233cebb893d9f73bef4420ce06bc4a89.zip
Enable LTO and opt-level=3 in the Rust workspace
-rw-r--r--Cargo.toml8
1 files changed, 2 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 0078b2b3a6..c4eb1e3054 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -19,9 +19,5 @@ members = [
exclude = ["dist-assets/binaries/shadowsocks-rust"]
[profile.release]
-# FIXME: This is here as a temporary hack to stop the mullvad-daemon from segfaulting
-# on Windows. Can hopefully be removed after we have replaced OpenSSL with Rustls.
-# https://github.com/mullvad/mullvadvpn-app/pull/1438
-# Other opt-levels that stops the daemon from crashing include 0 and 1. Crashes has
-# only been detected on 2.
-opt-level = "s"
+opt-level = 3
+lto = true