mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 05:35:39 +00:00
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>
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user