[vlc-devel] [PATCH 2/4] Add cross-compilation targets for Rust contribs

Martin Storsjö martin at martin.st
Tue Jul 21 20:40:21 CEST 2020


On Tue, 21 Jul 2020, rustyc wrote:

> ---
> contrib/src/main.mak | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/contrib/src/main.mak b/contrib/src/main.mak
> index 3119a39875..c8d7df4202 100644
> --- a/contrib/src/main.mak
> +++ b/contrib/src/main.mak
> @@ -440,6 +440,36 @@ else
> MESON = meson $(MESONFLAGS)
> endif
> 
> +ifdef HAVE_WIN32
> +RUST_TARGET = i686-pc-windows-gnu
> +else ifdef HAVE_WIN64
> +RUST_TARGET = x86_64-pc-windows-gnu

This is incorrectly assuming that windows implies x86. HAVE_WIN* only 
implies the bitness, but it can still be armv7 and aarch64 in addition to 
i686 and x86_64.

// Martin



More information about the vlc-devel mailing list