aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Harris <peter@harr.ca>2017-03-27 21:27:51 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2017-03-28 23:01:48 +0300
commit65377ff16a032723cbc58b0f8d0166970ec45c77 (patch)
tree4570b999e7a0513053e9c9e59f4ea51a52be1d89
parent2376d6eadfef6719d434cd130386aeb66070aff4 (diff)
downloadmeson-65377ff16a032723cbc58b0f8d0166970ec45c77.zip
meson-65377ff16a032723cbc58b0f8d0166970ec45c77.tar.gz
meson-65377ff16a032723cbc58b0f8d0166970ec45c77.tar.bz2
Fix warning making static libs on msvc/ninja
The MSVC static library tool, lib.exe, does not understand the same set of arguments as the linker. Avoid a warning by not adding /DEBUG or /PDB to the command line when invoking lib.exe
-rw-r--r--authors.txt1
-rw-r--r--mesonbuild/compilers.py5
2 files changed, 3 insertions, 3 deletions
diff --git a/authors.txt b/authors.txt
index 02ba5e3..bb6d3cd 100644
--- a/authors.txt
+++ b/authors.txt
@@ -70,3 +70,4 @@ Marc Becker
Michal Sojka
Aaron Small
Joe Baldino
+Peter Harris
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 7f1897c..f16a05f 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -3055,9 +3055,8 @@ class VisualStudioLinker(StaticLinker):
return VisualStudioCCompiler.unix_args_to_native(args)
def get_link_debugfile_args(self, targetfile):
- pdbarr = targetfile.split('.')[:-1]
- pdbarr += ['pdb']
- return ['/DEBUG', '/PDB:' + '.'.join(pdbarr)]
+ # Static libraries do not have PDB files
+ return []
class ArLinker(StaticLinker):