rust: meson: remove unnecessary complication in device crates
It is not necessary anymore to explicitly list procedural macro crates when doing the final link using rustc. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250908105005.2119297-33-pbonzini@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
31b35e78be
commit
efe8d07383
2 changed files with 0 additions and 6 deletions
|
|
@ -44,8 +44,5 @@ _libpl011_rs = static_library(
|
|||
|
||||
rust_devices_ss.add(when: 'CONFIG_X_PL011_RUST', if_true: [declare_dependency(
|
||||
link_whole: [_libpl011_rs],
|
||||
# Putting proc macro crates in `dependencies` is necessary for Meson to find
|
||||
# them when compiling the root per-target static rust lib.
|
||||
dependencies: [bilge_impl_rs, qemu_macros],
|
||||
variables: {'crate': 'pl011'},
|
||||
)])
|
||||
|
|
|
|||
|
|
@ -16,8 +16,5 @@ _libhpet_rs = static_library(
|
|||
|
||||
rust_devices_ss.add(when: 'CONFIG_X_HPET_RUST', if_true: [declare_dependency(
|
||||
link_whole: [_libhpet_rs],
|
||||
# Putting proc macro crates in `dependencies` is necessary for Meson to find
|
||||
# them when compiling the root per-target static rust lib.
|
||||
dependencies: [qemu_macros],
|
||||
variables: {'crate': 'hpet'},
|
||||
)])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue