From bfde33f2fb00864302d034e91cd40f17d43ce961 Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Tue, 16 Jan 2018 07:27:04 +0200 Subject: [PATCH] Add "-lmsvcrt" twice to get rustc to build with the latest mingw64 --- src/librustc_back/target/windows_base.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/librustc_back/target/windows_base.rs b/src/librustc_back/target/windows_base.rs index e6aa745d54e..7a901dc913f 100644 --- a/src/librustc_back/target/windows_base.rs +++ b/src/librustc_back/target/windows_base.rs @@ -59,6 +59,7 @@ pub fn opts() -> TargetOptions { "-lmingw32".to_string(), "-lgcc".to_string(), // alas, mingw* libraries above depend on libgcc "-lmsvcrt".to_string(), + "-lmsvcrt".to_string(), // mingw is insane...? "-luser32".to_string(), "-lkernel32".to_string(), ]);