You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a recent stabilization, rustc supports modifiers such as whole-archive for doing linking (rust-lang/rust#93901 (comment)). whole-archive is useful for cdylib crates that do their main initialization with ctors and thus are liable to have the C components be garbage collected by the linker to confusing results.
Since a recent stabilization, rustc supports modifiers such as whole-archive for doing linking (rust-lang/rust#93901 (comment)). whole-archive is useful for cdylib crates that do their main initialization with ctors and thus are liable to have the C components be garbage collected by the linker to confusing results.
Currently it seems that cc emits the rustc-link-lib directive to cargo in such a way that it isn't possible to specify modifiers: https://docs.rs/cc/latest/src/cc/lib.rs.html#1017
It would be great if these modifiers could be specified in the Build builder.
docs on rustc side: https://doc.rust-lang.org/rustc/command-line-arguments.html#-l-link-the-generated-crate-to-a-native-library
The text was updated successfully, but these errors were encountered: