Add info on module include flag for Fortran compilers.

pull/1895/head
Elliott Sales de Andrade 7 years ago
parent 4c9611c2d6
commit 17b051c8b1
  1. 9
      mesonbuild/compilers/fortran.py

@ -120,6 +120,9 @@ end program prog
def get_include_args(self, path, is_system): def get_include_args(self, path, is_system):
return ['-I' + path] return ['-I' + path]
def get_module_incdir_args(self):
return ('-I', )
def get_module_outdir_args(self, path): def get_module_outdir_args(self, path):
return ['-J' + path] return ['-J' + path]
@ -209,6 +212,9 @@ class SunFortranCompiler(FortranCompiler):
def get_warn_args(self, level): def get_warn_args(self, level):
return [] return []
def get_module_incdir_args(self):
return ('-M', )
def get_module_outdir_args(self, path): def get_module_outdir_args(self, path):
return ['-moddir=' + path] return ['-moddir=' + path]
@ -251,6 +257,9 @@ class PGIFortranCompiler(FortranCompiler):
super().__init__(exelist, version, is_cross, exe_wrapper=None) super().__init__(exelist, version, is_cross, exe_wrapper=None)
self.id = 'pgi' self.id = 'pgi'
def get_module_incdir_args(self):
return ('-module', )
def get_module_outdir_args(self, path): def get_module_outdir_args(self, path):
return ['-module', path] return ['-module', path]

Loading…
Cancel
Save