[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-68.2.0esr-9.5-1] Bug 32053: Work around Rust related reproducibility issues



commit f1f9fa0286982d1fa486880ad6037e1e7a46457d
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Thu Nov 7 07:53:53 2019 +0000

    Bug 32053: Work around Rust related reproducibility issues
---
 Cargo.toml                              | 2 +-
 build/moz.configure/toolchain.configure | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 7a0ba6d7abad..cb317e882847 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -50,7 +50,7 @@ debug-assertions = true
 panic = "abort"
 
 [profile.release]
-opt-level = 2
+opt-level = 1
 rpath = false
 debug-assertions = false
 panic = "abort"
diff --git a/build/moz.configure/toolchain.configure b/build/moz.configure/toolchain.configure
index 3bcf403bceec..f5a6ea7b3bc3 100755
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -1876,8 +1876,8 @@ js_option(env='RUSTC_OPT_LEVEL',
           nargs=1,
           help='Rust compiler optimization level (-C opt-level=%s)')
 
-# --enable-release kicks in full optimizations.
-imply_option('RUSTC_OPT_LEVEL', '2', when='--enable-release')
+# Use -O1 as a workaround for reproducibility issues for now, see #32053.
+imply_option('RUSTC_OPT_LEVEL', '1', when='--enable-release')
 
 
 @depends('RUSTC_OPT_LEVEL', moz_optimize)

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits