]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
igvm: use idiomatic meson conditional for IGVM build files
authorLuigi Leonardi <leonardi@redhat.com>
Fri, 26 Jun 2026 10:04:02 +0000 (12:04 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 2 Jul 2026 09:14:19 +0000 (11:14 +0200)
Replace the explicit igvm.found() check with system_ss.add(when:,
if_true:), matching the pattern used by all other optional backends.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luigi Leonardi <leonardi@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-ID: <20260626-microvm_device_tree-v6-2-9cd13cf057e2@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
backends/meson.build

index 60021f45d124d405441e17260d32ed28e01d6b3e..aabfaea5fd8db83c024fb24ad8909fe4657e6cdc 100644 (file)
@@ -34,11 +34,8 @@ if have_vhost_user_crypto
 endif
 system_ss.add(when: gio, if_true: files('dbus-vmstate.c'))
 system_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c'))
-if igvm.found()
-  system_ss.add(igvm)
-  system_ss.add(files('igvm-cfg.c'), igvm)
-  system_ss.add(files('igvm.c'), igvm)
-endif
+
+system_ss.add(when: igvm, if_true: [files('igvm-cfg.c', 'igvm.c')])
 
 system_ss.add(when: 'CONFIG_SPDM_SOCKET', if_true: files('spdm-socket.c'))