Open mmomtchev opened 6 hours ago
Describe the bug When not cross-building, using native: true leads to some options not being picked up
native: true
To Reproduce
project('lld', ['c']) executable('main', 'main.c', native: true)
[binaries] c = 'clang' ld = 'ld.lld' strip = 'llvm-strip' [built-in options] c_link_args = ['-fuse-ld=lld']
meson.py setup --native-file ../nativefile.ini --cross-file ../nativefile.ini ..
meson.py setup --native-file ../nativefile.ini ..
This can lead to build failures when ld is not installed.
ld
Expected behavior When not cross-building, native: true has no effect
system parameters All UNIX with clang
clang
Upstream bug
Describe the bug When not cross-building, using
native: true
leads to some options not being picked upTo Reproduce
works (linker is correctly identified)
does not work (linker is not correctly identified)
This can lead to build failures when
ld
is not installed.Expected behavior When not cross-building,
native: true
has no effectsystem parameters All UNIX with
clang