[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 15/26] meson: sort header tests
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 15/26] meson: sort header tests |
Date: |
Tue, 15 Jun 2021 15:47:46 +0100 |
User-agent: |
Mutt/2.0.7 (2021-05-04) |
On Tue, Jun 08, 2021 at 01:22:50PM +0200, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> meson.build | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/meson.build b/meson.build
> index 28825dec18..5fdb757751 100644
> --- a/meson.build
> +++ b/meson.build
> @@ -1258,16 +1258,17 @@ config_host_data.set('QEMU_VERSION_MAJOR',
> meson.project_version().split('.')[0]
> config_host_data.set('QEMU_VERSION_MINOR',
> meson.project_version().split('.')[1])
> config_host_data.set('QEMU_VERSION_MICRO',
> meson.project_version().split('.')[2])
>
> +config_host_data.set('HAVE_HOST_BLOCK_DEVICE', have_host_block_device)
> +
> config_host_data.set('HAVE_BTRFS_H', cc.has_header('linux/btrfs.h'))
> config_host_data.set('HAVE_DRM_H', cc.has_header('libdrm/drm.h'))
> config_host_data.set('HAVE_PTY_H', cc.has_header('pty.h'))
> +config_host_data.set('HAVE_SYS_DISK_H', cc.has_header('sys/disk.h'))
> config_host_data.set('HAVE_SYS_IOCCOM_H', cc.has_header('sys/ioccom.h'))
> config_host_data.set('HAVE_SYS_KCOV_H', cc.has_header('sys/kcov.h'))
> -config_host_data.set('HAVE_SYSTEM_FUNCTION', cc.has_function('system',
> prefix: '#include <stdlib.h>'))
> -config_host_data.set('HAVE_HOST_BLOCK_DEVICE', have_host_block_device)
> -config_host_data.set('HAVE_SYS_DISK_H', cc.has_header('sys/disk.h'))
>
> config_host_data.set('CONFIG_PREADV', cc.has_function('preadv', prefix:
> '#include <sys/uio.h>'))
> +config_host_data.set('HAVE_SYSTEM_FUNCTION', cc.has_function('system',
> prefix: '#include <stdlib.h>'))
Was tis supposde to be sorting based on header name or cpp macro name ?
Either way, IIUC, this is in the wrong place because "HAVE_SYSTEM"
would be before CONFIG_PREADV, and stdlib.h is before sys/uio.h
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH 14/26] configure, meson: convert libxml2 detection to meson, (continued)
- [PATCH 14/26] configure, meson: convert libxml2 detection to meson, Paolo Bonzini, 2021/06/08
- [PATCH 16/26] meson: remove preadv from summary, Paolo Bonzini, 2021/06/08
- [PATCH 18/26] configure: convert HAVE_BROKEN_SIZE_MAX to meson, Paolo Bonzini, 2021/06/08
- [PATCH 13/26] configure, meson: convert liburing detection to meson, Paolo Bonzini, 2021/06/08
- [PATCH 15/26] meson: sort header tests, Paolo Bonzini, 2021/06/08
- [PATCH 12/26] configure, meson: convert libpmem detection to meson, Paolo Bonzini, 2021/06/08
- [PATCH 20/26] meson: store dependency('threads') in a variable, Paolo Bonzini, 2021/06/08
- [PATCH 17/26] configure, meson: move CONFIG_IVSHMEM to meson, Paolo Bonzini, 2021/06/08
- [PATCH 21/26] configure: convert compiler tests to meson, part 2, Paolo Bonzini, 2021/06/08