From 20acd5b1beddaa77c9d0da1917940eeceb98e470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 7 May 2024 10:38:59 +0100 Subject: [PATCH] scripts/rpcgen: skip tests if tirpc is not present MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This skips building tests which rely on tirpc when it is not present. Reviewed-by: Peter Krempa Signed-off-by: Daniel P. Berrangé --- scripts/rpcgen/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rpcgen/meson.build b/scripts/rpcgen/meson.build index 7fb32c0f91..bce652c7ad 100644 --- a/scripts/rpcgen/meson.build +++ b/scripts/rpcgen/meson.build @@ -1,6 +1,6 @@ subdir('rpcgen') -if tests_enabled[0] +if tests_enabled[0] and xdr_dep.found() subdir('tests') if pytest_prog.found() and host_machine.system() != 'darwin'