|
|
@ -20,6 +20,10 @@ from pathlib import Path |
|
|
|
|
|
|
|
|
|
|
|
from ..compilers import clike_debug_args, clike_optimization_args |
|
|
|
from ..compilers import clike_debug_args, clike_optimization_args |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if T.TYPE_CHECKING: |
|
|
|
|
|
|
|
from ...envconfig import MachineInfo |
|
|
|
|
|
|
|
from ...environment import Environment |
|
|
|
|
|
|
|
|
|
|
|
pgi_buildtype_args = { |
|
|
|
pgi_buildtype_args = { |
|
|
|
'plain': [], |
|
|
|
'plain': [], |
|
|
|
'debug': [], |
|
|
|
'debug': [], |
|
|
@ -31,7 +35,12 @@ pgi_buildtype_args = { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PGICompiler: |
|
|
|
class PGICompiler: |
|
|
|
def __init__(self): |
|
|
|
|
|
|
|
|
|
|
|
if T.TYPE_CHECKING: |
|
|
|
|
|
|
|
info = MachineInfo('', '', '', '') |
|
|
|
|
|
|
|
language = '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self) -> None: |
|
|
|
self.base_options = ['b_pch'] |
|
|
|
self.base_options = ['b_pch'] |
|
|
|
self.id = 'pgi' |
|
|
|
self.id = 'pgi' |
|
|
|
|
|
|
|
|
|
|
@ -94,6 +103,6 @@ class PGICompiler: |
|
|
|
else: |
|
|
|
else: |
|
|
|
return [] |
|
|
|
return [] |
|
|
|
|
|
|
|
|
|
|
|
def thread_flags(self, env): |
|
|
|
def thread_flags(self, env: 'Environment') -> T.List[str]: |
|
|
|
# PGI cannot accept -pthread, it's already threaded |
|
|
|
# PGI cannot accept -pthread, it's already threaded |
|
|
|
return [] |
|
|
|
return [] |
|
|
|