gnome: Ensure gir always works with asan, even if used together with ubsan

This really resolves #1910 by making it also work in cases where asan
and ubsan are used together via "-Db_sanitize=address,undefined".
0.42
Matthias Klumpp 7 years ago committed by Nirbheek Chauhan
parent 05b837848d
commit f56a058e68
  1. 2
      mesonbuild/modules/gnome.py

@ -480,7 +480,7 @@ class GnomeModule(ExtensionModule):
if 'b_sanitize' in compiler.base_options:
sanitize = state.environment.coredata.base_options['b_sanitize'].value
cflags += compilers.sanitizer_compile_args(sanitize)
if sanitize == 'address':
if 'address' in sanitize.split(','):
ldflags += ['-lasan']
# FIXME: Linking directly to libasan is not recommended but g-ir-scanner
# does not understand -f LDFLAGS. https://bugzilla.gnome.org/show_bug.cgi?id=783892

Loading…
Cancel
Save