Avoid generating module_block.h and block-gen.c if we are not going to use them.
Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> --- Cc: qemu-bl...@nongnu.org --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 61cbb89cd44..181f8795f5a 100644 --- a/meson.build +++ b/meson.build @@ -1829,7 +1829,9 @@ subdir('nbd') subdir('scsi') -subdir('block') +if have_block + subdir('block') +endif blockdev_ss.add(files( 'blockdev.c', -- 2.26.2