mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
rust: apply --cfg MESON to all crates
We might have more uses for --cfg MESON, even though right now it's only qemu-api that has generated files. Since we're going to add more flags to the add_project_arguments calls for Rust, it makes sense to also add --cfg MESON everywhere. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
72d6ed19bf
commit
8c28667503
2 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
_qemu_api_cfg = ['--cfg', 'MESON']
|
||||
_qemu_api_cfg = []
|
||||
# _qemu_api_cfg += ['--cfg', 'feature="allocator"']
|
||||
if rustc.version().version_compare('>=1.77.0')
|
||||
_qemu_api_cfg += ['--cfg', 'has_offset_of']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue