aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2018-12-08 17:53:51 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-09 16:24:58 +0200
commit05e75ab3e736659fab509b394282ef65ef78be19 (patch)
tree6b6330d167024f352dc8032c6cde786f2404e637
parentd64f93800f0042de5e27ce187458e424e60f25e8 (diff)
downloadmeson-05e75ab3e736659fab509b394282ef65ef78be19.zip
meson-05e75ab3e736659fab509b394282ef65ef78be19.tar.gz
meson-05e75ab3e736659fab509b394282ef65ef78be19.tar.bz2
Reinstate "compilers/c: Fix allow undefined link arg for PE/COFF"
This reinstates 2256e6314b610b8f6645d0c5384536001ddeccf9, which was lost in refactoring in 9f9cfd21396db5cd5eb1711916c8b0c6e433c702.
-rw-r--r--mesonbuild/compilers/compilers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index bdc90da..e27ae2b 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1538,6 +1538,9 @@ class GnuLikeCompiler(abc.ABC):
if self.compiler_type.is_osx_compiler:
# Apple ld
return ['-Wl,-undefined,dynamic_lookup']
+ elif self.compiler_type.is_windows_compiler:
+ # For PE/COFF this is impossible
+ return []
else:
# GNU ld and LLVM lld
return ['-Wl,--allow-shlib-undefined']