add '-fno-omit-frame-pointer' to sanitize address builds for nicer stack traces in error messages.

This commit is contained in:
artemp 2017-03-14 11:16:13 +00:00
parent 203d767e73
commit 834f0ef312

View file

@ -1799,7 +1799,7 @@ if not preconfigured:
env.Append(CXXFLAGS = '-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error -ftrapv -fwrapv') env.Append(CXXFLAGS = '-fsanitize=undefined-trap -fsanitize-undefined-trap-on-error -ftrapv -fwrapv')
if env['DEBUG_SANITIZE']: if env['DEBUG_SANITIZE']:
env.Append(CXXFLAGS = ['-fsanitize=address']) env.Append(CXXFLAGS = ['-fsanitize=address','-fno-omit-frame-pointer'])
env.Append(LINKFLAGS = ['-fsanitize=address']) env.Append(LINKFLAGS = ['-fsanitize=address'])