From 2b94f52d47bdc64684e3a7355bbedd07807cb438 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sun, 6 Oct 2024 16:43:25 +1100 Subject: [PATCH] Revert "Use debug version of MSVC runtime library on debug (#1231)" (#1237) This reverts commit c80a7069404599db54f32ac7a0a1945bf67e5ea2. --- src/lib.rs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cfe5f63b..bdd437a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1945,15 +1945,8 @@ impl Build { None => { let features = self.getenv("CARGO_CFG_TARGET_FEATURE"); let features = features.as_deref().unwrap_or_default(); - let debug = self.get_debug(); if features.to_string_lossy().contains("crt-static") { - if debug { - "-MTd" - } else { - "-MT" - } - } else if debug { - "-MDd" + "-MT" } else { "-MD" }