From 6830debf83329e41ffaf7fce4a7b07bf19e341c8 Mon Sep 17 00:00:00 2001 From: SweetId <2630750+SweetId@users.noreply.github.com> Date: Sun, 31 Jul 2022 00:47:22 +0200 Subject: [PATCH] runtime MT/MTd to fit NazaraEngine --- xmake.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index 56439a9..e02a4ff 100644 --- a/xmake.lua +++ b/xmake.lua @@ -36,13 +36,16 @@ elseif is_plat("mingw") then add_ldflags("-Wa,-mbig-obj") end -if is_mode("asan", "tsan", "ubsan") then +if is_mode("debug") then + set_runtimes("MTd") +elseif 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("MT") set_fpmodels("fast") add_vectorexts("sse", "sse2", "sse3", "ssse3") end