summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/fortran.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-04-30 15:41:36 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-05-13 11:22:31 -0700
commit080f59cf43797a37e1711474b3093f48fefa95c9 (patch)
treed1e2df192d7ff90287dfcb9f20e865f6b193d8d1 /mesonbuild/compilers/fortran.py
parent5fb64b0cfa48daf7f2c412ee8e851fa29f2ef1a3 (diff)
downloadmeson-080f59cf43797a37e1711474b3093f48fefa95c9.tar.gz
compilers: rename IntelCompiler to IntelGnuLikeCompiler
The Intel compiler is strange. On Linux and macOS it's called ICC, and it tries to mostly behave like gcc/clang. On Windows it's called ICL, and tries to behave like MSVC. This makes the code that's used to implement ICC support useless for supporting ICL, because their command line interfaces are completely different.
Diffstat (limited to 'mesonbuild/compilers/fortran.py')
-rw-r--r--mesonbuild/compilers/fortran.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py
index 3fee43bb6..4f9b9ffa3 100644
--- a/mesonbuild/compilers/fortran.py
+++ b/mesonbuild/compilers/fortran.py
@@ -26,8 +26,8 @@ from .compilers import (
GnuCompiler,
ClangCompiler,
ElbrusCompiler,
- IntelCompiler,
- PGICompiler,
+ IntelGnuLikeCompiler,
+ PGICompiler
)
from .clike import CLikeCompiler
@@ -213,13 +213,13 @@ class SunFortranCompiler(FortranCompiler):
return ['-xopenmp']
-class IntelFortranCompiler(IntelCompiler, FortranCompiler):
+class IntelFortranCompiler(IntelGnuLikeCompiler, FortranCompiler):
def __init__(self, exelist, version, is_cross, exe_wrapper=None, **kwags):
self.file_suffixes = ('f90', 'f', 'for', 'ftn', 'fpp')
FortranCompiler.__init__(self, exelist, version, is_cross, exe_wrapper, **kwags)
# FIXME: Add support for OS X and Windows in detect_fortran_compiler so
# we are sent the type of compiler
- IntelCompiler.__init__(self, CompilerType.ICC_STANDARD)
+ IntelGnuLikeCompiler.__init__(self, CompilerType.ICC_STANDARD)
self.id = 'intel'
default_warn_args = ['-warn', 'general', '-warn', 'truncated_source']
self.warn_args = {'0': [],