diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-01-16 12:26:47 -0500 |
---|---|---|
committer | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-01-16 17:06:43 -0500 |
commit | b40c1af900df5e199fab63c1486f7d17b46386b4 (patch) | |
tree | 4ae2836126a2ec4239c8d34cbb56ad84d1b10f00 /mesonbuild/compilers/compilers.py | |
parent | 2ba2c7771fc27a086d3b73bbb25462eff300c2a2 (diff) | |
download | meson-b40c1af900df5e199fab63c1486f7d17b46386b4.zip meson-b40c1af900df5e199fab63c1486f7d17b46386b4.tar.gz meson-b40c1af900df5e199fab63c1486f7d17b46386b4.tar.bz2 |
Flang Fortran compiler added.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 34c0e3b..1e86978 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1311,6 +1311,8 @@ class CompilerType(enum.Enum): PGI_STANDARD = 50 + FLANG_STANDARD = 60 + @property def is_standard_compiler(self): return self.name in ('GCC_STANDARD', 'CLANG_STANDARD', 'ICC_STANDARD') @@ -1619,6 +1621,27 @@ class PGICompiler: def openmp_flags(self): return ['-fopenmp'] + +class FlangCompiler: + def __init__(self, compiler_type): + self.id = 'flang' + self.compiler_type = compiler_type + + default_warn_args = ['-Minform=inform'] + self.warn_args = {'1': default_warn_args, + '2': default_warn_args, + '3': default_warn_args} + + def get_module_incdir_args(self): + return ('-module', ) + + def get_no_warn_args(self): + return ['-silent'] + + def openmp_flags(self): + return ['-fopenmp'] + + class ElbrusCompiler(GnuCompiler): # Elbrus compiler is nearly like GCC, but does not support # PCH, LTO, sanitizers and color output as of version 1.21.x. |