diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2024-11-06 11:25:55 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-12-10 18:44:06 +0100 |
commit | 1de82059aa097340d0ffde9140d338cddef478e5 (patch) | |
tree | 80890bd6ce0eaf00b92c4842e050c75cb56602c1 /rust/qemu-api/meson.build | |
parent | f3a6e9bc475504152e45e5fbf86c756157438d08 (diff) | |
download | qemu-1de82059aa097340d0ffde9140d338cddef478e5.zip qemu-1de82059aa097340d0ffde9140d338cddef478e5.tar.gz qemu-1de82059aa097340d0ffde9140d338cddef478e5.tar.bz2 |
rust: build: restrict --cfg generation to only required symbols
Parse the Cargo.toml file, looking for the unexpected_cfgs
configuration. When generating --cfg options from the
config-host.h file, only use those that are included in the
configuration.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/qemu-api/meson.build')
-rw-r--r-- | rust/qemu-api/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/qemu-api/meson.build b/rust/qemu-api/meson.build index 5df6b35..2ff6d2c 100644 --- a/rust/qemu-api/meson.build +++ b/rust/qemu-api/meson.build @@ -1,5 +1,5 @@ _qemu_api_cfg = run_command(rustc_args, - '--config-headers', config_host_h, + '--config-headers', config_host_h, files('Cargo.toml'), capture: true, check: true).stdout().strip().split() # _qemu_api_cfg += ['--cfg', 'feature="allocator"'] |