msvc: Don't add dynamic link args, they're ignored

And they print a linker warning about unknown args.
pull/3905/head
Nirbheek Chauhan 6 years ago committed by Jussi Pakkanen
parent c69030c123
commit 475efb9354
  1. 3
      mesonbuild/compilers/c.py

@ -1275,6 +1275,9 @@ class VisualStudioCCompiler(CCompiler):
def get_pic_args(self):
return [] # PIC is handled by the loader on Windows
def gen_export_dynamic_link_args(self, env):
return [] # Not applicable with MSVC
def get_std_shared_lib_link_args(self):
return ['/DLL']

Loading…
Cancel
Save