1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

meson: error out when ch driver is requested but unsupported

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Ján Tomko 2025-01-20 10:14:03 +01:00
parent 981929112c
commit 064b3a276d

View File

@ -1582,8 +1582,15 @@ elif get_option('driver_lxc').enabled()
error('linux and remote_driver are required for LXC')
endif
if not get_option('driver_ch').disabled() and host_machine.system() == 'linux' and (host_machine.cpu_family() == 'x86_64' or host_machine.cpu_family() == 'aarch64')
use_ch = true
if not get_option('driver_ch').disabled()
if host_machine.system() == 'linux' and (host_machine.cpu_family() == 'x86_64' or host_machine.cpu_family() == 'aarch64')
use_ch = true
else
use_ch = false
if get_option('driver_ch').enabled()
error('linux on x86_64 or aarch64 is required to build Cloud-Hypervisor driver')
endif
endif
if not conf.has('WITH_LIBVIRTD')
use_ch = false