From: Jeremy Kerr Date: Mon, 20 Jun 2022 04:07:22 +0000 (+0800) Subject: meson: use host target for defining endianness X-Git-Tag: v1.1-rc0~32^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f21a66ce6bed537b15ecfba47281036bd4a09641;p=users%2Fsagi%2Flibnvme.git 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 --- 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(