gnome: Avoid unhandled exception

pull/910/head
Patrick Griffis 8 years ago committed by Jussi Pakkanen
parent b6b8d561b8
commit d7fdeb4d15
  1. 2
      mesonbuild/modules/gnome.py

@ -158,7 +158,7 @@ class GnomeModule:
ldflags.update(extdepflags[1])
gi_includes.update(extdepflags[2])
for source in dep.sources:
if isinstance(source.held_object, GirTarget):
if hasattr(source, 'held_object') and isinstance(source.held_object, GirTarget):
gi_includes.update([os.path.join(state.environment.get_build_dir(),
source.held_object.get_subdir())])
# This should be any dependency other than an internal one.

Loading…
Cancel
Save