diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-01-08 13:23:52 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-01-29 09:11:24 -0800 |
commit | fd892ad7cec12a34287f65a57c44703a6f4e4119 (patch) | |
tree | aba23134fa8670f3db8296c0db695833f4c1ddb4 /mesonbuild/dependencies/coarrays.py | |
parent | f85d6cee6abd5d3f763240bcd0ab4e18daf60c95 (diff) | |
download | meson-fd892ad7cec12a34287f65a57c44703a6f4e4119.zip meson-fd892ad7cec12a34287f65a57c44703a6f4e4119.tar.gz meson-fd892ad7cec12a34287f65a57c44703a6f4e4119.tar.bz2 |
dependencies: Make Dependency initializer signatures match
Currently PkgConfig takes language as a keyword parameter in position 3,
while the others take it as positional in position 2. Because most
dependencies don't actually set a language (they use C style linking),
using a positional argument makes more sense. ExtraFrameworkDependencies
is even more different, and duplicates some arguments from the base
ExternalDependency class.
For later changes I'm planning to make having all of the dependencies
use the same signature is really, really helpful.
Diffstat (limited to 'mesonbuild/dependencies/coarrays.py')
-rw-r--r-- | mesonbuild/dependencies/coarrays.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/coarrays.py b/mesonbuild/dependencies/coarrays.py index b0b6cf4..7f0b30e 100644 --- a/mesonbuild/dependencies/coarrays.py +++ b/mesonbuild/dependencies/coarrays.py @@ -26,7 +26,7 @@ class CoarrayDependency(ExternalDependency): low-level MPI calls. """ def __init__(self, environment, kwargs: dict): - super().__init__('coarray', environment, 'fortran', kwargs) + super().__init__('coarray', environment, kwargs, language='fortran') kwargs['required'] = False kwargs['silent'] = True self.is_found = False |