diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-09-05 23:45:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 23:45:54 +0300 |
commit | d67d5411bb7fa00226365ebcfc475af08a4ba721 (patch) | |
tree | f0636ff994401375e4e1d38cb7d4559e58462d67 /mesonbuild/compilers | |
parent | 7b765155347005e01bdd9ae8bfdad7182f27f852 (diff) | |
parent | b9af8f8b6b394903d64e4886712b38a056cd876f (diff) | |
download | meson-d67d5411bb7fa00226365ebcfc475af08a4ba721.zip meson-d67d5411bb7fa00226365ebcfc475af08a4ba721.tar.gz meson-d67d5411bb7fa00226365ebcfc475af08a4ba721.tar.bz2 |
Merge pull request #5823 from scivision/linker-pgi-linux
PGI compiler fixes
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/mixins/pgi.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/pgi.py b/mesonbuild/compilers/mixins/pgi.py index c13c7bc..38c7ffd 100644 --- a/mesonbuild/compilers/mixins/pgi.py +++ b/mesonbuild/compilers/mixins/pgi.py @@ -56,7 +56,7 @@ class PGICompiler: def get_pic_args(self) -> typing.List[str]: # PGI -fPIC is Linux only. - if self.compiler_type.is_linux_compiler(): + if self.compiler_type.is_standard_compiler: return ['-fPIC'] return [] @@ -97,3 +97,7 @@ class PGICompiler: '-I{}'.format(hdr.parent)] else: return [] + + def thread_flags(self, env): + # PGI cannot accept -pthread, it's already threaded + return [] |