From a15732aac396e8fe5aae83d07764b03e2b4367bc Mon Sep 17 00:00:00 2001 From: loonycyborg Date: Thu, 19 Nov 2020 19:44:31 +0300 Subject: [PATCH] Fix debug build on mingw platform --- SConstruct | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SConstruct b/SConstruct index 0a71c56cc15..7ea350079a6 100755 --- a/SConstruct +++ b/SConstruct @@ -545,6 +545,10 @@ for env in [test_env, client_env, env]: # # 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: glibcxx_debug_flags = "_GLIBCXX_DEBUG _GLIBCXX_DEBUG_PEDANTIC"