diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2025-04-16 16:50:46 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2025-04-16 17:00:04 -0400 |
| commit | 944456b5f9b4428853f231368e2baea979042c46 (patch) | |
| tree | c03357bbc4b0fb01d6b63f630e347c7a140fb8d4 /test cases/python | |
| parent | 84b7870caca35d063e35cf407ec804ff91d8f8c7 (diff) | |
| download | meson-944456b5f9b4428853f231368e2baea979042c46.tar.gz | |
linkers: fix regression when using lld after iOS changes
```
$ LDFLAGS="-fuse-ld=lld" meson setup builddir/
[...]
linker = lld_cls(
compiler, for_machine, comp_class.LINKER_PREFIX, override, system=system, version=v)
TypeError: LLVMDynamicLinker.__init__() got an unexpected keyword argument 'system'
```
Fixes regression in commit cece1a7e9992a3bbcc35f90777ba22ba9d62b538. We
pass system=system to the linker construction, which worked fine for
Apple LLVM LD64 as that inherited `__init__` from DynamicLinker. But
non-Apple LLD had an overridden `__init__` which wasn't adapted.
Even if it is thrown away and never used, since LLVM isn't an Apple
linker, we still need to obey the argument contract.
Diffstat (limited to 'test cases/python')
0 files changed, 0 insertions, 0 deletions
