]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
meson: use host target for defining endianness
authorJeremy Kerr <jk@codeconstruct.com.au>
Mon, 20 Jun 2022 04:07:22 +0000 (12:07 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Mon, 20 Jun 2022 04:52:22 +0000 (12:52 +0800)
We're currently basing the host endian tests on the build_machine; we
should be using host_machine instead.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
meson.build

index 4141c7918097e65b073da9a938cfd0ded35e0b03..ecd5a62912c7cf2553f2a08045075ea05d7eb385 100644 (file)
@@ -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(