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

Rémi Denis-Courmont remi at remlab.net
Wed Jul 22 11:17:36 CEST 2020


Le tiistaina 21. heinäkuuta 2020, 21.40.21 EEST Martin Storsjö a écrit :
> 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.

Not even that. HAVE_WIN32 implies that the Win32 API is available, which 
requires pointers of 32 bits *or more*.

And HAVE_WIN64 is not even defined in VLC contribs.

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list