QEMU needs it in its integration tests (in order to run global constructors), and therefore in rust.doctest too. With this change I could do: # Rust executables do not support objects, so add an intermediate step. rust_qemu_api_objs = static_library( 'rust_qemu_api_objs', objects: [libqom.extract_all_objects(recursive: false), libhwcore.extract_all_objects(recursive: false)]) rust.doctest('rust-qemu-api-doc', _qemu_api_rs, dependencies: [qemu_api, qemu_api_macros], link_with: libqemuutil, link_whole: [rust_qemu_api_objs], suite: ['doc', 'rust']) followed by "meson test --suite doc". For completeness, add it to rust.test as well. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>pull/13933/head
parent
8e11221fe6
commit
d7df3c514e
3 changed files with 14 additions and 2 deletions
@ -0,0 +1,4 @@ |
||||
## `rust.test` now supports `link_whole` |
||||
|
||||
The `test` function in the `rust` module now supports the `link_whole` |
||||
keyword argument in addition to `link_with` and `dependencies`. |
Loading…
Reference in new issue