From 094c2ae16ce6f78b99d0e69c1084a2c14f0ad59f Mon Sep 17 00:00:00 2001 From: Niv Kaminer Date: Mon, 16 Oct 2017 22:53:25 +0300 Subject: [PATCH] revert change to function_sections for windows --- src/librustc_back/target/windows_base.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc_back/target/windows_base.rs b/src/librustc_back/target/windows_base.rs index 21b8c4e082e..e6aa745d54e 100644 --- a/src/librustc_back/target/windows_base.rs +++ b/src/librustc_back/target/windows_base.rs @@ -64,7 +64,8 @@ pub fn opts() -> TargetOptions { ]); TargetOptions { - function_sections: true, + // FIXME(#13846) this should be enabled for windows + function_sections: false, linker: "gcc".to_string(), dynamic_linking: true, executables: true,