[PATCH v2] build: fix cross compilation to x86_64

Thomas Monjalon thomas at monjalon.net
Thu Oct 15 19:29:59 CEST 2026


07/10/2026 12:39, Bruce Richardson:
> On Wed, Oct 07, 2026 at 11:26:29AM +0200, Adrian Schollmeyer wrote:
> > If x86_64 is specified as target CPU instruction set (e.g. when
> > cross-compiling *to* x86_64), the cpu_instruction_set may be set to
> > x86_64, e.g. if it is derived from a Meson crossfile. However, while
> > Meson uses "x86_64" as name for the x86_64 architecture, compiler
> > options accept only "x86-64".
> > 
> > Introduce a conditional for handling this special case by changing
> > cpu_instruction_set to the march-compatible value.
> > 
> > Signed-off-by: Adrian Schollmeyer <a.schollmeyer at syseleven.de>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks.

It would be nice to move all arch-specific settings
in their subdirectory config/$arch/.





More information about the dev mailing list