Skip to content

Commit

Permalink
fix PGI Windows 'ar' linker
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Nov 1, 2019
1 parent 9c1bab6 commit 50225c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,7 @@ def detect_static_linker(self, compiler):
# 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 = {}
Expand Down

0 comments on commit 50225c1

Please sign in to comment.