aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-07-19 04:34:08 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-08-04 20:07:08 -0400
commit17b051c8b1939177c1e3f81bae58c7ce40cdbce3 (patch)
treef64ebd64732008985b9adc5c89eb7b0a26947d3f
parent4c9611c2d6ebdcc782c2a7ccd5315dee603b02d4 (diff)
downloadmeson-17b051c8b1939177c1e3f81bae58c7ce40cdbce3.zip
meson-17b051c8b1939177c1e3f81bae58c7ce40cdbce3.tar.gz
meson-17b051c8b1939177c1e3f81bae58c7ce40cdbce3.tar.bz2
Add info on module include flag for Fortran compilers.
-rw-r--r--mesonbuild/compilers/fortran.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py
index e17cda0..49200bb 100644
--- a/mesonbuild/compilers/fortran.py
+++ b/mesonbuild/compilers/fortran.py
@@ -120,6 +120,9 @@ end program prog
def get_include_args(self, path, is_system):
return ['-I' + path]
+ def get_module_incdir_args(self):
+ return ('-I', )
+
def get_module_outdir_args(self, path):
return ['-J' + path]
@@ -209,6 +212,9 @@ class SunFortranCompiler(FortranCompiler):
def get_warn_args(self, level):
return []
+ def get_module_incdir_args(self):
+ return ('-M', )
+
def get_module_outdir_args(self, path):
return ['-moddir=' + path]
@@ -251,6 +257,9 @@ class PGIFortranCompiler(FortranCompiler):
super().__init__(exelist, version, is_cross, exe_wrapper=None)
self.id = 'pgi'
+ def get_module_incdir_args(self):
+ return ('-module', )
+
def get_module_outdir_args(self, path):
return ['-module', path]