From 37966279624627289833d2eccb4367e8242cffb9 Mon Sep 17 00:00:00 2001 From: Ali Mashtizadeh Date: Wed, 30 Aug 2023 15:12:24 -0400 Subject: [PATCH] Remove sibling calls to make the disassembly cleaner. --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 7973b11..785f8a7 100644 --- a/SConstruct +++ b/SConstruct @@ -49,7 +49,8 @@ if 'LDFLAGS' in os.environ: env.Append(LINKFLAGS = SCons.Util.CLVar(os.environ['LDFLAGS'])) env.Append(CFLAGS = [ "-Wshadow", "-Wno-typedef-redefinition" ]) -env.Append(CPPFLAGS = [ "-fno-builtin", "-fno-stack-protector" ]) +env.Append(CPPFLAGS = [ "-fno-builtin", "-fno-stack-protector", + "-fno-optimize-sibling-calls" ]) if (env["STRICT"] == "1"): env.Append(CPPFLAGS = [ "-Wformat=2", "-Wmissing-format-attribute",