summaryrefslogtreecommitdiff
path: root/test cases/rust/2 sharedlib/meson.build
AgeCommit message (Collapse)Author
2025-10-29test cases/rust: adjust expected installed paths for shared librariesPaolo Bonzini
Make sure that they are checked against the correct extension on Darwin. Fixes: #7964 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2023-02-22Implement rustc controlled whole-archive linkingDylan Baker
Rustc as of version 1.61.0 has support for controlling when whole-archive linking takes place, previous to this it tried to make a good guess about what you wanted, which worked most of the time. This is now implemented. Additionally, rustc makes some assumptions about library names (specifically static names), that meson does not keep. This can be fixed with rustc 1.67, where a new +verbatim modifier has been added. We can then force rustc to use the name we give it. Before that, we can sneak through `/WHOELARCHIVE:` in cases of dynamic linking (into a dll or exe), but we can't force the archiver to do what we want (rustc considers the archiver to be an implementation detail). The only solution I can come up with is to copy the library to the format that rustc expects. I've run into some issues with that as well, so we warn in that case. The decisions to leave static into static broken on MSVC for 1.61–1.66 was made because: 1) The work around is non-trivial, and we would have to support that workaround for a long time 2) The number of users of Rust in Meson is small 3) The number of users of Rust in Meson on Windows, with MSVC is tiny 4) Using rustup to update rustc on windows is trivial, and solves the problem completely Fixes: #10723 Fixes: #11247 Co-authored-by: Nirbheek Chauhan <nirbheek@centricular.com>
2021-10-10Fix typos discovered by codespellChristian Clauss
2020-11-11tests/rust: dynamic linking doesn't work on darwinDylan Baker
This is a bug, and needs to be fixed, but in the short term testing other rust functionality on darwin is an improvement over testing none.
2019-06-22Run Rust shared library test via rustup to get the environment right.Jussi Pakkanen
2014-06-23Install Rust shared libraries.Jussi Pakkanen
2014-06-19Set up dependencies for Rust linking. Does not work fully yet.Jussi Pakkanen
2014-06-19Build a shared Rust library.Jussi Pakkanen