diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-12-06 14:27:44 -0800 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-01-18 17:53:29 -0500 |
commit | 6b272973e07596b48ac95e4adaa0df9118b73b00 (patch) | |
tree | d8ea4b3d56e756d5252bd512018572b48862da4a /mesonbuild/dependencies/boost.py | |
parent | ab9c0c17356eb05078f1ae5d876638b4620d0148 (diff) | |
download | meson-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/dependencies/boost.py')
-rw-r--r-- | mesonbuild/dependencies/boost.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py index aadf3f8..318bca2 100644 --- a/mesonbuild/dependencies/boost.py +++ b/mesonbuild/dependencies/boost.py @@ -648,7 +648,7 @@ class BoostDependency(SystemDependency): try: boost_pc = PkgConfigDependency('boost', self.env, {'required': False}) if boost_pc.found(): - boost_root = boost_pc.get_pkgconfig_variable('prefix', {'default': None}) + boost_root = boost_pc.get_pkgconfig_variable('prefix', [], None) if boost_root: roots += [Path(boost_root)] except DependencyException: |