diff options
author | Hagai <hagais@securingsam.com> | 2017-07-19 17:40:16 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-21 20:15:14 +0300 |
commit | 035b2525aca843a5f0fdba8f96a4f40999504d99 (patch) | |
tree | 3cdcd183c234389da18115addd44ff9feb209efe | |
parent | 8c39007e41271d46540c068790900b272a7d1fc7 (diff) | |
download | meson-035b2525aca843a5f0fdba8f96a4f40999504d99.zip meson-035b2525aca843a5f0fdba8f96a4f40999504d99.tar.gz meson-035b2525aca843a5f0fdba8f96a4f40999504d99.tar.bz2 |
build.py: fixed a small issue where hasattr was passed only a name argument.
-rw-r--r-- | mesonbuild/build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 89b96f5..3797a6a 100644 --- a/mesonbuild/build.py +++ b/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.') |