fix MT/MD mismatch in release
This commit is contained in:
parent
7132511562
commit
e55bcd8ff6
|
|
@ -36,16 +36,15 @@ elseif is_plat("mingw") then
|
||||||
add_ldflags("-Wa,-mbig-obj")
|
add_ldflags("-Wa,-mbig-obj")
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_mode("debug") then
|
set_runtimes(is_mode("debug") and "MDd" or "MD")
|
||||||
set_runtimes("MDd")
|
|
||||||
elseif is_mode("asan", "tsan", "ubsan") then
|
if is_mode("asan", "tsan", "ubsan") then
|
||||||
set_optimize("none") -- by default xmake will optimize asan builds
|
set_optimize("none") -- by default xmake will optimize asan builds
|
||||||
elseif is_mode("coverage") then
|
elseif is_mode("coverage") then
|
||||||
if not is_plat("windows") then
|
if not is_plat("windows") then
|
||||||
add_links("gcov")
|
add_links("gcov")
|
||||||
end
|
end
|
||||||
elseif is_mode("releasedbg") then
|
elseif is_mode("releasedbg") then
|
||||||
set_runtimes("MD")
|
|
||||||
set_fpmodels("fast")
|
set_fpmodels("fast")
|
||||||
add_vectorexts("sse", "sse2", "sse3", "ssse3")
|
add_vectorexts("sse", "sse2", "sse3", "ssse3")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue