Print stacktrace with UBSAN

llvm-svn: 256729
This commit is contained in:
Eric Fiselier 2016-01-04 03:54:58 +00:00
parent 42a0730c42
commit 67ac709e4c
1 changed files with 1 additions and 0 deletions

View File

@ -558,6 +558,7 @@ class Configuration(object):
'-fno-sanitize=vptr,function',
'-fno-sanitize-recover']
self.cxx.compile_flags += ['-O3']
self.env['UBSAN_OPTIONS'] = 'print_stacktrace=1'
self.config.available_features.add('ubsan')
elif san == 'Thread':
self.cxx.flags += ['-fsanitize=thread']