linkers: Fix lld detection

This was actually probing bfd without always_args passed.

Fixes: #10763
pull/11274/head
Jan Janssen 2 years ago committed by Dylan Baker
parent cb20486f37
commit 9f6b1b8a68
  1. 2
      mesonbuild/linkers/linkers.py

@ -869,7 +869,7 @@ class LLVMDynamicLinker(GnuLikeDynamicLinkerMixin, PosixDynamicLinkerMixin, Dyna
super().__init__(exelist, for_machine, prefix_arg, always_args, version=version)
# Some targets don't seem to support this argument (windows, wasm, ...)
_, _, e = mesonlib.Popen_safe(self.exelist + self._apply_prefix('--allow-shlib-undefined'))
_, _, e = mesonlib.Popen_safe(self.exelist + always_args + self._apply_prefix('--allow-shlib-undefined'))
# 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)

Loading…
Cancel
Save