Skip to content

Commit f21a66c

Browse files
committed
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 <[email protected]>
1 parent 65f5279 commit f21a66c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ conf.set10(
125125
)
126126
conf.set10(
127127
'HAVE_LITTLE_ENDIAN',
128-
build_machine.endian() == 'little',
128+
host_machine.endian() == 'little',
129129
description: 'Building for little-endian'
130130
)
131131
conf.set10(
132132
'HAVE_BIG_ENDIAN',
133-
build_machine.endian() == 'big',
133+
host_machine.endian() == 'big',
134134
description: 'Building for big-endian'
135135
)
136136
conf.set10(

0 commit comments

Comments
 (0)