compilers/fortran: fix werror options for Intel compilers

Unlike in the Intel C compiler, -Werror and /WX are not accepted.
pull/13067/head
Benjamin Gilbert 7 months ago committed by Dylan Baker
parent 1684259f10
commit 2004b7c24d
  1. 6
      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]

Loading…
Cancel
Save