aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-07-30 11:07:03 -0700
committerJussi Pakkanen <jpakkane@gmail.com>2021-09-25 00:18:22 +0300
commit64c267c49c785a204730ca28141f1fe34bc1827a (patch)
treeca841d7940372425d499f955c06519aa1216b6f0 /mesonbuild/compilers/compilers.py
parentfee5cb697c77156f0dec4264ce846dd0d4f84fd5 (diff)
downloadmeson-64c267c49c785a204730ca28141f1fe34bc1827a.zip
meson-64c267c49c785a204730ca28141f1fe34bc1827a.tar.gz
meson-64c267c49c785a204730ca28141f1fe34bc1827a.tar.bz2
compilers: Add default search path stdlib_only_link_flags
This should be done in all cases of language_stdlib_only_link_flags, but I don't have access to all of the compilers to test it. This is required in cases where object files created by gfortran are linked using another compiler with a differen default search path, such as gfortran and clang together.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index de5e472..6896b76 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -893,7 +893,7 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
def openmp_link_flags(self) -> T.List[str]:
return self.openmp_flags()
- def language_stdlib_only_link_flags(self) -> T.List[str]:
+ def language_stdlib_only_link_flags(self, env: 'Environment') -> T.List[str]:
return []
def gnu_symbol_visibility_args(self, vistype: str) -> T.List[str]: