diff options
author | Tristan Partin <tristan@partin.io> | 2022-05-18 19:37:12 -0500 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2022-05-18 22:44:17 -0400 |
commit | 153e81a81623b2abad12eff1043c0d5b474f5c15 (patch) | |
tree | a8ddeb36264d481e0f3f4e20868a2ec6a3b44bf3 /mesonbuild/linkers/linkers.py | |
parent | cf86b2f9a1826f6e75e043309469f0856b82fb0c (diff) | |
download | meson-153e81a81623b2abad12eff1043c0d5b474f5c15.zip meson-153e81a81623b2abad12eff1043c0d5b474f5c15.tar.gz meson-153e81a81623b2abad12eff1043c0d5b474f5c15.tar.bz2 |
Fix --allow-shlib-undefined for LLVM versions > 9
Diffstat (limited to 'mesonbuild/linkers/linkers.py')
-rw-r--r-- | mesonbuild/linkers/linkers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index ae55864..b74e5fd 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -846,7 +846,8 @@ class LLVMDynamicLinker(GnuLikeDynamicLinkerMixin, PosixDynamicLinkerMixin, Dyna # Some targets don't seem to support this argument (windows, wasm, ...) _, _, e = mesonlib.Popen_safe(self.exelist + self._apply_prefix('--allow-shlib-undefined')) - self.has_allow_shlib_undefined = 'unknown argument: --allow-shlib-undefined' not in e + # Versions < 9 do not have a quoted argument + self.has_allow_shlib_undefined = ('unknown argument: --allow-shlib-undefined' not in e) and ("unknown argument: '--allow-shlib-undefined'" not in e) def get_allow_undefined_args(self) -> T.List[str]: if self.has_allow_shlib_undefined: |