diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-08-16 10:40:45 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-08-24 22:50:35 -0400 |
commit | a044f42308b576f0739e50fec7e03327b4b4c66a (patch) | |
tree | d56dd6f441df4b30b977a6742726151ef059f99f /mesonbuild/build.py | |
parent | 741de254623cac7577c935ea45056390fcd708c4 (diff) | |
download | meson-a044f42308b576f0739e50fec7e03327b4b4c66a.zip meson-a044f42308b576f0739e50fec7e03327b4b4c66a.tar.gz meson-a044f42308b576f0739e50fec7e03327b4b4c66a.tar.bz2 |
build: add a `uses_fortran()` convenience method
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index b866bd0..28d503f 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1634,6 +1634,9 @@ You probably should put it in link_with instead.''') def uses_rust(self) -> bool: return 'rust' in self.compilers + def uses_fortran(self) -> bool: + return 'fortran' in self.compilers + def get_using_msvc(self) -> bool: ''' Check if the dynamic linker is MSVC. Used by Executable, StaticLibrary, |