fix MT/MD mismatch in release

This commit is contained in:
SweetId 2023-10-20 20:29:25 -04:00
parent bd40b7c47a
commit 2a821c0cb3
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,9 @@ elseif is_plat("mingw") then
add_ldflags("-Wa,-mbig-obj")
end
set_runtimes(is_mode("debug") and "MDd" or "MD")
if is_mode("debug") then
set_runtimes("MDd")
elseif is_mode("asan", "tsan", "ubsan") then
set_optimize("none") -- by default xmake will optimize asan builds
elseif is_mode("coverage") then
@ -45,7 +46,6 @@ elseif is_mode("coverage") then
add_links("gcov")
end
elseif is_mode("releasedbg") then
set_runtimes("MD")
set_fpmodels("fast")
add_vectorexts("sse", "sse2", "sse3", "ssse3")
end