diff options
Diffstat (limited to 'mesonbuild/environment.py')
-rw-r--r-- | mesonbuild/environment.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 5096320..fcd4bdb 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -309,7 +309,13 @@ class Environment(): version = vmatch.group(0) if 'GNU Fortran' in out: - return GnuFortranCompiler([compiler], version, GCC_STANDARD, is_cross, exe_wrap) + if mesonlib.is_osx(): + gcctype = GCC_OSX + elif mesonlib.is_windows(): + gcctype = GCC_MINGW + else: + gcctype = GCC_STANDARD + return GnuFortranCompiler([compiler], version, gcctype, is_cross, exe_wrap) if 'G95' in out: return G95FortranCompiler([compiler], version, is_cross, exe_wrap) |