Open knyipab opened 5 months ago
Seems to work after changing to
sed -i "s|cmake = 'cmake'|cmake = 'cmake'\nrust = ['rustc', '--target', 'aarch64-linux-android', '-L', '${TERMUX_PREFIX}/lib']|" "$TERMUX_MESON_CROSSFILE"
I suppose each arch needs to have separate meson file.
Edit: only progress up to a point before ld complains incompatible. Need further investigation.
This kind of feature is probably required for neocmakelsp 0.7.8. It uses meson to build rust program.
Currently, it seems that building rust-dependent package with meson is not so feasible with the existing build script. Someone may test below build script. Grateful for devs adding support to rust for meson.
And it prompts error:
Attempt
I also tried to copy
termux_setup_meson
and patch with rust registration in CROSSFILE:but it prompts:
This issue is cross-compiling-specific
As a POC, this on-device build action works: https://github.com/knyipab/tur/actions/runs/9526259153