Set Gnu fortran type based on platform.

pull/579/head
Jussi Pakkanen 9 years ago
parent 37c5d45d07
commit 8e734a8c9f
  1. 1
      mesonbuild/backend/ninjabackend.py
  2. 8
      mesonbuild/environment.py

@ -525,7 +525,6 @@ int dummy;
srcabs = os.path.join(self.environment.get_source_dir(), m.get_source_subdir(), f)
dstabs = os.path.join(subdir, os.path.split(f)[1] + '.gz')
i = [srcabs, dstabs]
print(i)
d.man.append(i)
def generate_data_install(self, d):

@ -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)

Loading…
Cancel
Save