From f21a66ce6bed537b15ecfba47281036bd4a09641 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 20 Jun 2022 12:07:22 +0800 Subject: [PATCH] meson: use host target for defining endianness We're currently basing the host endian tests on the build_machine; we should be using host_machine instead. Signed-off-by: Jeremy Kerr --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 4141c791..ecd5a629 100644 --- a/meson.build +++ b/meson.build @@ -125,12 +125,12 @@ conf.set10( ) conf.set10( 'HAVE_LITTLE_ENDIAN', - build_machine.endian() == 'little', + host_machine.endian() == 'little', description: 'Building for little-endian' ) conf.set10( 'HAVE_BIG_ENDIAN', - build_machine.endian() == 'big', + host_machine.endian() == 'big', description: 'Building for big-endian' ) conf.set10( -- 2.50.1