summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/pgi.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-08-21 13:12:30 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-10-07 12:08:20 -0700
commit0c22798b1ad4678abb205280060175678a790c4a (patch)
treee58a51d87bffe1ecd6437f85adc0adefbed469d6 /mesonbuild/compilers/mixins/pgi.py
parentff4a17dbef08a1d8afd075f57dbab0f5c76951ab (diff)
downloadmeson-0c22798b1ad4678abb205280060175678a790c4a.tar.gz
compilers: replace CompilerType with MachineInfo
Now that the linkers are split out of the compilers this enum is only used to know what platform we're compiling for. Which is what the MachineInfo class is for
Diffstat (limited to 'mesonbuild/compilers/mixins/pgi.py')
-rw-r--r--mesonbuild/compilers/mixins/pgi.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py
index 38c7ffdaf..065c71621 100644
--- a/mesonbuild/compilers/mixins/pgi.py
+++ b/mesonbuild/compilers/mixins/pgi.py
@@ -20,9 +20,6 @@ from pathlib import Path
from ..compilers import clike_debug_args, clike_optimization_args
-if typing.TYPE_CHECKING:
- from ..compilers import CompilerType
-
pgi_buildtype_args = {
'plain': [],
'debug': [],
@@ -34,10 +31,9 @@ pgi_buildtype_args = {
class PGICompiler:
- def __init__(self, compiler_type: 'CompilerType'):
+ def __init__(self):
self.base_options = ['b_pch']
self.id = 'pgi'
- self.compiler_type = compiler_type
default_warn_args = ['-Minform=inform']
self.warn_args = {'0': [],
@@ -56,7 +52,7 @@ class PGICompiler:
def get_pic_args(self) -> typing.List[str]:
# PGI -fPIC is Linux only.
- if self.compiler_type.is_standard_compiler:
+ if self.info.is_linux():
return ['-fPIC']
return []