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
rust: Do not bundle static libraries into internal libraries
When a Rust rlib/staticlib links to a C static library, it should not
bundle its object files, unless it gets installed. This solves cases of
multiple symbol definition when there is a diamond dependency graph.
The only case we want to bundle is when a Rust staticlib link-whole
another static library. In non-Rust case we achieve that by extracting
objects, but rustc can do it for us. As extra bonus, rustc can bundle
static libraries built with a CustomTarget.
0 commit comments