On Fri, Jun 26, 2026 at 12:04:02PM +0200, Luigi Leonardi wrote:
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 <[email protected]>
Signed-off-by: Luigi Leonardi <[email protected]>
---
backends/meson.build | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)

Reviewed-by: Stefano Garzarella <[email protected]>


diff --git a/backends/meson.build b/backends/meson.build
index 60021f45d1..aabfaea5fd 100644
--- a/backends/meson.build
+++ b/backends/meson.build
@@ -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'))


--
2.54.0



Reply via email to