Skip to content

Commit 269506d

Browse files
committed
configure, meson: get HOST_WORDS_BIGENDIAN via the machine object
No need to pass it in config-host.mak. Reviewed-by: Marc-André Lureau <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent a630508 commit 269506d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

configure

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ tsan="no"
347347
fortify_source="$default_feature"
348348
strip_opt="yes"
349349
tcg_interpreter="false"
350-
bigendian="no"
351350
mingw32="no"
352351
gcov="no"
353352
EXESUF=""
@@ -4264,9 +4263,6 @@ fi
42644263
if test "$strip_opt" = "yes" ; then
42654264
echo "STRIP=${strip}" >> $config_host_mak
42664265
fi
4267-
if test "$bigendian" = "yes" ; then
4268-
echo "HOST_WORDS_BIGENDIAN=y" >> $config_host_mak
4269-
fi
42704266
if test "$mingw32" = "yes" ; then
42714267
echo "CONFIG_WIN32=y" >> $config_host_mak
42724268
if test "$guest_agent_with_vss" = "yes" ; then

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,6 +1463,7 @@ config_host_data.set('QEMU_VERSION_MICRO', meson.project_version().split('.')[2]
14631463

14641464
config_host_data.set_quoted('CONFIG_HOST_DSOSUF', host_dsosuf)
14651465
config_host_data.set('HAVE_HOST_BLOCK_DEVICE', have_host_block_device)
1466+
config_host_data.set('HOST_WORDS_BIGENDIAN', host_machine.endian() == 'big')
14661467

14671468
# has_header
14681469
config_host_data.set('CONFIG_EPOLL', cc.has_header('sys/epoll.h'))
@@ -1622,7 +1623,7 @@ foreach k, v: config_host
16221623
config_host_data.set('HOST_' + v.to_upper(), 1)
16231624
elif strings.contains(k)
16241625
config_host_data.set_quoted(k, v)
1625-
elif k.startswith('CONFIG_') or k.startswith('HAVE_') or k.startswith('HOST_')
1626+
elif k.startswith('CONFIG_') or k.startswith('HAVE_')
16261627
config_host_data.set(k, v == 'y' ? 1 : v)
16271628
endif
16281629
endforeach

0 commit comments

Comments
 (0)