Better check for when address sanitizer is enabled. Closes #2590.

pull/2604/head
Jussi Pakkanen 7 years ago
parent 5f7f5cdb05
commit 34d928a830
  1. 2
      mesonbuild/compilers/compilers.py

@ -273,7 +273,7 @@ def sanitizer_compile_args(value):
if value == 'none':
return []
args = ['-fsanitize=' + value]
if value == 'address':
if 'address' in value: # For -fsanitize=address,undefined
args.append('-fno-omit-frame-pointer')
return args

Loading…
Cancel
Save