aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorBenjamin Gilbert <bgilbert@backtick.net>2024-04-21 16:17:26 -0500
committerDylan Baker <dylan@pnwbakers.com>2024-04-27 08:09:03 -0700
commit2004b7c24dbc4a3ff3d333df9456e1e1223e9c8b (patch)
tree0de9abd98d70902f7c1d5d593733279fd2b3492d /mesonbuild
parent1684259f10cc129c922e38e4f1325aef876773d6 (diff)
downloadmeson-2004b7c24dbc4a3ff3d333df9456e1e1223e9c8b.zip
meson-2004b7c24dbc4a3ff3d333df9456e1e1223e9c8b.tar.gz
meson-2004b7c24dbc4a3ff3d333df9456e1e1223e9c8b.tar.bz2
compilers/fortran: fix werror options for Intel compilers
Unlike in the Intel C compiler, -Werror and /WX are not accepted.
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/fortran.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py
index 2cdff36..4282515 100644
--- a/mesonbuild/compilers/fortran.py
+++ b/mesonbuild/compilers/fortran.py
@@ -300,6 +300,9 @@ class IntelFortranCompiler(IntelGnuLikeCompiler, FortranCompiler):
def get_preprocess_only_args(self) -> T.List[str]:
return ['-cpp', '-EP']
+ def get_werror_args(self) -> T.List[str]:
+ return ['-warn', 'errors']
+
def language_stdlib_only_link_flags(self, env: 'Environment') -> T.List[str]:
# TODO: needs default search path added
return ['-lifcore', '-limf']
@@ -349,6 +352,9 @@ class IntelClFortranCompiler(IntelVisualStudioLikeCompiler, FortranCompiler):
args.append('/stand:' + stds[std.value])
return args
+ def get_werror_args(self) -> T.List[str]:
+ return ['/warn:errors']
+
def get_module_outdir_args(self, path: str) -> T.List[str]:
return ['/module:' + path]