]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: use "objects" for Rust executables as well
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 27 Feb 2025 12:36:49 +0000 (13:36 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 3 Jun 2025 20:42:18 +0000 (22:42 +0200)
commit4f04a4eaf0576a5a5a1c347b63d17b4d5244c979
tree39a171098636194749a776bf45a22ca413b7c771
parent0074a471477d56723bd6fd044b78c30ff5958f56
rust: use "objects" for Rust executables as well

libqemuutil is not meant be linked as a whole; if modules are enabled, doing
so results in undefined symbols (corresponding to QMP commands) in
rust/qemu-api/rust-qemu-api-integration.

Support for "objects" in Rust executables is available in Meson 1.8.0; use it
to switching to the same dependencies that C targets use: link_with for
libqemuutil, and objects for everything else.

Reported-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
docs/devel/rust.rst
rust/meson.build
rust/qemu-api/meson.build