fix PGI Windows 'ar' linker

pull/6123/head
Michael Hirsch, Ph.D 5 years ago
parent 9c1bab67af
commit 50225c14e2
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 2
      mesonbuild/environment.py

@ -1504,7 +1504,7 @@ class Environment:
# Intel has it's own linker that acts like microsoft's lib
linkers = ['xilib']
elif isinstance(compiler, (PGICCompiler, PGIFortranCompiler)) and mesonlib.is_windows():
linkers = [self.default_static_linker] # this is just a wrapper calling link/lib on Windows, keeping things simple.
linkers = [['ar']] # For PGI on Windows, "ar" is just a wrapper calling link/lib.
else:
linkers = defaults
popen_exceptions = {}

Loading…
Cancel
Save