[Mesa-dev] [PATCH] meson: Allow use of ASM for x86 host with x86_64 build machine

Dylan Baker dylan at pnwbakers.com
Thu Jun 7 22:45:42 UTC 2018

Quoting Eric Anholt (2018-06-07 14:34:02)
> Dylan Baker <dylan at pnwbakers.com> writes:
> > The reason we restrict the use of ASM when cross compiling is that there
> > is a C based generator (mtypes) that must be run as part of the build
> > process, and it must be built for the host architecture. In the case of
> > an x86 host and an x86_64 build machine this is possible as long as the
> > host and build OSes are the same (ie, not Windows -> Linux).
> >
> > This also makes the commit message a bit more generic than it previously
> > was.
> Given that the igt meson build has been running some of my
> cross-compiled arm binaries under qemu during its build process, I
> actually don't think we need to restrict running matypes compiled for
> the host.

I have a todo about that actually. Really the only cases we need to restrict are
x86 -> x86_64 and !x86* -> x86*; (since only x86* uses gen_matypes). I just
haven't had time to test using an exe_wrapper for that purpose, and meson
doesn't enforce that you have an exe_wrapper, so we still need to disable the
assembly if you don't have one.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180607/93c1dc8e/attachment.sig>

More information about the mesa-dev mailing list