aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/c.py
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-01-21 13:09:36 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2019-01-21 20:09:36 +0200
commit72486afd08d66d6323c2113739dcfff74813058b (patch)
treeba7ac44b91fc1324c53fb8db12b884fdefbb8249 /mesonbuild/compilers/c.py
parent20248fa919c5a2e4f9ac1f88f087862da52abfbb (diff)
downloadmeson-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.py8
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)