From 834f0ef312f63f19e14273a833e099e3d69ad3bb Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 14 Mar 2017 11:16:13 +0000 Subject: [PATCH] add '-fno-omit-frame-pointer' to sanitize address builds for nicer stack traces in error messages. --- SConstruct | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 892b0c01e..b00dfecba 100644 --- a/SConstruct +++ b/SConstruct @@ -1799,7 +1799,7 @@ if not preconfigured: env.Append(CXXFLAGS = '-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error -ftrapv -fwrapv') if env['DEBUG_SANITIZE']: - env.Append(CXXFLAGS = ['-fsanitize=address']) + env.Append(CXXFLAGS = ['-fsanitize=address','-fno-omit-frame-pointer']) env.Append(LINKFLAGS = ['-fsanitize=address'])