summaryrefslogtreecommitdiff
path: root/test cases/rust
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-07-21 15:57:33 +0200
committerDylan Baker <dylan@pnwbakers.com>2025-07-21 09:20:44 -0700
commit2b7661a43f8e85d666dd66ecddb85aedb154a58c (patch)
treef105e8af409fe0dbbb0e7097a63c5899065a97da /test cases/rust
parent9530af6d657d1a393ef511c5ee13d12c10f81ae1 (diff)
downloadmeson-2b7661a43f8e85d666dd66ecddb85aedb154a58c.tar.gz
rust: pass rpath arguments to rustdoc --test
rustdoc does not support --print, and therefore the rpath argument corresponding to the rust installation is not passed to doctests. Forward anything that requires --print to the RustCompiler, thus fixing doctests with a shared library dependency. Fixes: #14813 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'test cases/rust')
-rw-r--r--test cases/rust/9 unit tests/meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/rust/9 unit tests/meson.build b/test cases/rust/9 unit tests/meson.build
index 0fa2fa80b..81045f2b6 100644
--- a/test cases/rust/9 unit tests/meson.build
+++ b/test cases/rust/9 unit tests/meson.build
@@ -40,6 +40,12 @@ if rustdoc.found()
protocol : 'rust',
suite : ['doctests'],
)
+
+ doclib = shared_library('rust_doc_lib', ['doctest1.rs'], build_by_default : false)
+ rust.doctest('rust shared doctests', doclib,
+ protocol : 'rust',
+ suite : ['doctests'],
+ )
endif
exe = executable('rust_exe', ['test2.rs', 'test.rs'], build_by_default : false)