From 65377ff16a032723cbc58b0f8d0166970ec45c77 Mon Sep 17 00:00:00 2001 From: Peter Harris Date: Mon, 27 Mar 2017 21:27:51 -0400 Subject: 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 --- mesonbuild/compilers.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mesonbuild/compilers.py') 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): -- cgit v1.1