diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-07 05:24:38 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-07 05:44:34 +0530 |
commit | f5a9b3b249efdafacbff1060999c60257c0ff72c (patch) | |
tree | 39ddf23228c030805dda7c0ab3b365aa763c0b39 /mesonbuild/compilers.py | |
parent | dc1f537fb364833697406e7eb26f9a59d5d1d105 (diff) | |
download | meson-f5a9b3b249efdafacbff1060999c60257c0ff72c.zip meson-f5a9b3b249efdafacbff1060999c60257c0ff72c.tar.gz meson-f5a9b3b249efdafacbff1060999c60257c0ff72c.tar.bz2 |
Fix shared module support on Windows
Unlike Linux and OS X, when a library is loaded, all the symbols aren't
loaded into a single namespace. You must fetch the symbol by iterating over
all loaded modules.
So, we shouldn't use /FORCE:UNRESOLVED since that is not what modules do
on Windows. Instead, we now do exactly what GModule does on Windows.
Also use `void` for functions that take no arguments.
Diffstat (limited to 'mesonbuild/compilers.py')
-rw-r--r-- | mesonbuild/compilers.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 63117e8..b019e5f 100644 --- a/mesonbuild/compilers.py +++ b/mesonbuild/compilers.py @@ -1926,9 +1926,6 @@ class VisualStudioCCompiler(CCompiler): pdbarr += ['pdb'] return ['/DEBUG', '/PDB:' + '.'.join(pdbarr)] - def get_std_shared_module_link_args(self): - return ['/DLL', '/FORCE:UNRESOLVED'] - class VisualStudioCPPCompiler(VisualStudioCCompiler, CPPCompiler): def __init__(self, exelist, version, is_cross, exe_wrap): self.language = 'cpp' |