From a5fc607e0aacb58b71df4df27471d6e7f6bde3b2 Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 18 Sep 2024 14:11:08 +0800 Subject: [PATCH] Remove `-lmsvcrt` --- src/zig.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zig.rs b/src/zig.rs index e9f319d..81eb36b 100644 --- a/src/zig.rs +++ b/src/zig.rs @@ -136,7 +136,7 @@ impl Zig { // zig doesn't support --disable-auto-image-base, --dynamicbase and --large-address-aware return None; } else if arg == "-lmsvcrt" { - return Some("-lmsvcrt-os".to_owned()); + return None; } } else if arg == "-Wl,--no-undefined-version" { // https://github.com/rust-lang/rust/blob/542ed2bf72b232b245ece058fc11aebb1ca507d7/compiler/rustc_codegen_ssa/src/back/linker.rs#L723