gnome: Ensure gir always works with asan, even if used together with ubsan
This really resolves by making it also work in cases where asan
and ubsan are used together via "-Db_sanitize=address,undefined".
@@ -486,7 +486,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
