aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-12-06 14:27:44 -0800
committerEli Schwartz <eschwartz93@gmail.com>2022-01-18 17:53:29 -0500
commit6b272973e07596b48ac95e4adaa0df9118b73b00 (patch)
treed8ea4b3d56e756d5252bd512018572b48862da4a /mesonbuild/modules/gnome.py
parentab9c0c17356eb05078f1ae5d876638b4620d0148 (diff)
downloadmeson-6b272973e07596b48ac95e4adaa0df9118b73b00.zip
meson-6b272973e07596b48ac95e4adaa0df9118b73b00.tar.gz
meson-6b272973e07596b48ac95e4adaa0df9118b73b00.tar.bz2
dependencies: don't pass kwargs from get_pkgconfig_variable
This is a layering violation, we're relying on the way the interpreter handles keyword arguments. Instead, pass them as free variables, destructuring in the interpreter
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index 78e09e6..fc084c2 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -325,7 +325,7 @@ class GnomeModule(ExtensionModule):
# Check if pkgconfig has a variable
dep = self._get_dep(state, depname, native=True, required=False)
if dep.found() and dep.type_name == 'pkgconfig':
- value = dep.get_pkgconfig_variable(varname, {})
+ value = dep.get_pkgconfig_variable(varname, [], None)
if value:
return ExternalProgram(name, [value])