binaries in toolchain file are wrongly handled
stsp opened this issue · comments
Meson insists on adding some binaries
to the cross-toolchain config file. For example
it warns if strip
is not there.
First problem is that there can be more
than 1 strip name. Say, for x86_32 it can be:
i686-linux-gnu-strip
, i386-elf-strip
,
x86_64-linux-gnu-strip
(this one is bi-arch).
But the attempt to add a list of names,
results in meson making a single command
of all these names! Instead of to search
for the existing one from the list.
Now I can ignore the toolchain config
and pass the same list to find_program()
directly, adding some dummy name to the
toolchain config to avoid the warning.
I also need to pass native: true
or
find_program()
would just ignore the
entire list and use whatever is in the config.
Please allow to write a search list to the
toolchain config.
Please don't drop the entire search list
from find_program()
if 1 of the components
is strip
. Maybe find_program()
should
be diverted only if it has just 1 component,
and when is has the list then native: true
should be in effect?