As an initial implementation, simply adding "-C prefer-dynamic" works for binary crates (as well as dylib and proc-macro that already used it). In the future this could be extended to other crate types. For more information see the comment in the changed file, as well as https://github.com/mesonbuild/meson/issues/8828 and https://github.com/mesonbuild/meson/issues/14215. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>pull/14224/head
parent
9ccda887c1
commit
6365f2811f
6 changed files with 38 additions and 3 deletions
@ -0,0 +1,7 @@ |
||||
## New experimental option `rust_dynamic_std` |
||||
|
||||
A new option `rust_dynamic_std` can be used to link Rust programs so |
||||
that they use a dynamic library for the Rust `libstd`. |
||||
|
||||
Right now, `staticlib` crates cannot be produced if `rust_dynamic_std` is |
||||
true, but this may change in the future. |
Loading…
Reference in new issue