diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-01-21 13:09:36 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-21 20:09:36 +0200 |
commit | 72486afd08d66d6323c2113739dcfff74813058b (patch) | |
tree | ba7ac44b91fc1324c53fb8db12b884fdefbb8249 /mesonbuild/compilers/c.py | |
parent | 20248fa919c5a2e4f9ac1f88f087862da52abfbb (diff) | |
download | meson-72486afd08d66d6323c2113739dcfff74813058b.zip meson-72486afd08d66d6323c2113739dcfff74813058b.tar.gz meson-72486afd08d66d6323c2113739dcfff74813058b.tar.bz2 |
Add PGI C and C++ compilers (#4803)
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r-- | mesonbuild/compilers/c.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index f7864c0..a8be2b0 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -40,10 +40,12 @@ from .compilers import ( ClangCompiler, Compiler, CompilerArgs, + CompilerType, CrossNoRunException, GnuCompiler, ElbrusCompiler, IntelCompiler, + PGICompiler, RunResult, CcrxCompiler, ) @@ -1222,6 +1224,12 @@ class GnuCCompiler(GnuCompiler, CCompiler): return ['-fpch-preprocess', '-include', os.path.basename(header)] +class PGICCompiler(PGICompiler, CCompiler): + def __init__(self, exelist, version, is_cross, exe_wrapper=None, **kwargs): + CCompiler.__init__(self, exelist, version, is_cross, exe_wrapper, **kwargs) + PGICompiler.__init__(self, CompilerType.PGI_STANDARD) + + class ElbrusCCompiler(GnuCCompiler, ElbrusCompiler): def __init__(self, exelist, version, compiler_type, is_cross, exe_wrapper=None, defines=None, **kwargs): GnuCCompiler.__init__(self, exelist, version, compiler_type, is_cross, exe_wrapper, defines, **kwargs) |