From: Paolo Bonzini Date: Fri, 12 Dec 2025 11:40:15 +0000 (+0100) Subject: rust: skip compilation if there are no system emulators X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dc162f5a3d6866d6888d5bce1b8f7d458e828cf;p=thirdparty%2Fqemu.git rust: skip compilation if there are no system emulators Otherwise, the Rust crates require the corresponding C code (e.g. migration/ for rust/migration/) but the dependencies of that C code, for example the trace files, have not been built. Signed-off-by: Paolo Bonzini --- diff --git a/rust/meson.build b/rust/meson.build index afbeeeb47a..bacb787910 100644 --- a/rust/meson.build +++ b/rust/meson.build @@ -1,3 +1,9 @@ +if not have_system + subdir_done() +else + message('Rust enabled but it is only used by system emulators.') +endif + subproject('anyhow-1-rs', required: true) subproject('bilge-0.2-rs', required: true) subproject('bilge-impl-0.2-rs', required: true) @@ -30,6 +36,7 @@ subdir('qemu-macros') subdir('common') subdir('bits') + subdir('util') subdir('bql') subdir('migration')