From e55bcd8ff69db0861d9fb01bc65ac7489854db04 Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Fri, 20 Oct 2023 20:31:02 -0400 Subject: [PATCH] fix MT/MD mismatch in release --- xmake.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xmake.lua b/xmake.lua index 7a7afe0..e4cc578 100644 --- a/xmake.lua +++ b/xmake.lua @@ -36,16 +36,15 @@ elseif is_plat("mingw") then add_ldflags("-Wa,-mbig-obj") end -if is_mode("debug") then - set_runtimes("MDd") -elseif is_mode("asan", "tsan", "ubsan") then +set_runtimes(is_mode("debug") and "MDd" or "MD") + +if is_mode("asan", "tsan", "ubsan") then set_optimize("none") -- by default xmake will optimize asan builds elseif is_mode("coverage") then if not is_plat("windows") then add_links("gcov") end elseif is_mode("releasedbg") then - set_runtimes("MD") set_fpmodels("fast") add_vectorexts("sse", "sse2", "sse3", "ssse3") end