diff options
Diffstat (limited to 'mesonbuild')
-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: |