From 9764f4d44f3a796232fc91732f2c8776a0b5a5cb Mon Sep 17 00:00:00 2001 From: Lightning Date: Sun, 31 Oct 2021 18:26:58 -0700 Subject: [PATCH] Changes required to prevent kmc compiler from using debugging (#514) as it inserts extra instructions at the moment --- tools/build/configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/build/configure.py b/tools/build/configure.py index e67288984a..bd35eeace0 100755 --- a/tools/build/configure.py +++ b/tools/build/configure.py @@ -70,6 +70,7 @@ def write_ninja_rules(ninja: ninja_syntax.Writer, cpp: str, cppflags: str, extra cflags = f"-c -G0 -O2 -fno-common -B {BUILD_TOOLS}/cc/gcc/ {extra_cflags}" kmc_cflags = f"-c -G0 -mgp32 -mfp32 -mips3 {extra_cflags}" + kmc_cflags = kmc_cflags.replace("-ggdb3","-g1") ninja.variable("python", sys.executable) @@ -759,7 +760,7 @@ if __name__ == "__main__": cppflags += " -DDEBUG" # e.g. affects ASSERT macro elif args.debug: # g1 doesn't affect codegen - cflags += " -g1" + cflags += " -ggdb3" if not args.no_warn: cflags += " -Wuninitialized -Wmissing-braces -Wimplicit -Wredundant-decls -Wstrict-prototypes"