mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 23:03:25 +00:00
Fix debug build on mingw platform
This commit is contained in:
parent
ffeb80f6ca
commit
a15732aac3
@ -545,6 +545,10 @@ for env in [test_env, client_env, env]:
|
|||||||
# #
|
# #
|
||||||
|
|
||||||
debug_flags = env["opt"]+"-DDEBUG -ggdb3"
|
debug_flags = env["opt"]+"-DDEBUG -ggdb3"
|
||||||
|
if "mingw" in env["TOOLS"]:
|
||||||
|
debug_flags += " -Wa,-mbig-obj"
|
||||||
|
debug_flags = Split(debug_flags)
|
||||||
|
debug_flags.append("${ '-O3' if TARGET.name == 'gettext.o' else '' }") # workaround for "File too big" errors
|
||||||
|
|
||||||
if env["glibcxx_debug"] == True:
|
if env["glibcxx_debug"] == True:
|
||||||
glibcxx_debug_flags = "_GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC"
|
glibcxx_debug_flags = "_GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user