build.py: fixed a small issue where hasattr was passed only a name argument.

pull/2104/head
Hagai 7 years ago committed by Jussi Pakkanen
parent 8c39007e41
commit 035b2525ac
  1. 2
      mesonbuild/build.py

@ -828,7 +828,7 @@ You probably should put it in link_with instead.''')
# This is a bit of a hack. We do not want Build to know anything
# about the interpreter so we can't import it and use isinstance.
# This should be reliable enough.
if hasattr(dep, 'project_args_frozen') or hasattr('global_args_frozen'):
if hasattr(dep, 'project_args_frozen') or hasattr(dep, 'global_args_frozen'):
raise InvalidArguments('Tried to use subproject object as a dependency.\n'
'You probably wanted to use a dependency declared in it instead.\n'
'Access it by calling get_variable() on the subproject object.')

Loading…
Cancel
Save