]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
rust: skip compilation if there are no system emulators
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Dec 2025 11:40:15 +0000 (12:40 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 27 Dec 2025 09:11:12 +0000 (10:11 +0100)
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>
rust/meson.build

index afbeeeb47a7368bf03b89ad3216d6688d24ad8f0..bacb787910298565b5a22e10627a9bd07f5865d7 100644 (file)
@@ -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')