From f35b598bbf3bb86f70c731b8ef981beada052a08 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Fri, 10 Feb 2017 17:12:18 +0000 Subject: [PATCH] Disable memory init file until further notice It's support is currently too buggy in both Rust tests and Cargo. --- src/librustc_trans/back/linker.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/librustc_trans/back/linker.rs b/src/librustc_trans/back/linker.rs index 6e409f43355..830d1d0d3a5 100644 --- a/src/librustc_trans/back/linker.rs +++ b/src/librustc_trans/back/linker.rs @@ -570,6 +570,8 @@ impl<'a> Linker for EmLinker<'a> { OptLevel::Size => "-Os", OptLevel::SizeMin => "-Oz" }); + // Unusable until https://github.com/rust-lang/rust/issues/38454 is resolved + self.cmd.args(&["--memory-init-file", "0"]); } fn debuginfo(&mut self) {