compilers/mixins/pgi: simplify pic logic

pull/5681/head
Michael Hirsch, Ph.D 6 years ago committed by Dylan Baker
parent 571deb5f9e
commit f5f7a7bbb3
  1. 6
      mesonbuild/compilers/mixins/pgi.py

@ -74,9 +74,9 @@ class PGICompiler():
def get_pic_args(self) -> typing.List[str]:
# PGI -fPIC is Linux only.
if self.compiler_type.is_osx_compiler or self.compiler_type.is_windows_compiler:
return []
return ['-fPIC']
if self.compiler_type.is_linux_compiler():
return ['-fPIC']
return []
def openmp_flags(self) -> typing.List[str]:
return ['-mp']

Loading…
Cancel
Save