diff options
author | Tamer Fahmy <tamer.fahmy@gmail.com> | 2019-04-22 23:27:16 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-04-22 15:46:43 -0700 |
commit | 0259cc6de21c223f1f38f0a6d118779f455b881f (patch) | |
tree | 7af09efc94a6713e38cb7746ab555484af58d162 /mesonbuild/compilers | |
parent | a7a7f0ba64bc892715591cf369c29dde1b64c030 (diff) | |
download | meson-0259cc6de21c223f1f38f0a6d118779f455b881f.zip meson-0259cc6de21c223f1f38f0a6d118779f455b881f.tar.gz meson-0259cc6de21c223f1f38f0a6d118779f455b881f.tar.bz2 |
fortran: fix compile.links() when passing dependencies
With dependencies specifed, mode='compile' causes it to ignore the link
arguments and thereby always fails.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/fortran.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index e747a35..0f7c38e 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -248,7 +248,7 @@ class FortranCompiler(Compiler): return CCompiler._get_basic_compiler_args(self, env, mode) def _get_compiler_check_args(self, env, extra_args, dependencies, mode='compile'): - return CCompiler._get_compiler_check_args(self, env, extra_args, dependencies, mode='compile') + return CCompiler._get_compiler_check_args(self, env, extra_args, dependencies, mode=mode) def compiles(self, code, env, *, extra_args=None, dependencies=None, mode='compile'): return CCompiler.compiles(self, code, env, extra_args=extra_args, |