summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-12-12 12:40:15 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-12-27 10:11:12 +0100
commit1dc162f5a3d6866d6888d5bce1b8f7d458e828cf (patch)
tree89aa06921e1f9537132abaa3f5399bd5068f6f7e /rust
parente12799fc615ef3903e7cf0acc1b113505e129f53 (diff)
downloadqemu-1dc162f5a3d6866d6888d5bce1b8f7d458e828cf.tar.gz
qemu-1dc162f5a3d6866d6888d5bce1b8f7d458e828cf.zip
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 <pbonzini@redhat.com>
Diffstat (limited to 'rust')
-rw-r--r--rust/meson.build7
1 files changed, 7 insertions, 0 deletions
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')