mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-06 08:36:52 -04:00
740679e1f5
Add rlib digest to identify Rust object files This adds a metadata entry to `rlib` archives that lists which members are Rust object files instead of relying on the filename heuristic in `looks_like_rust_object.file`. I also added a fallback to the old behavior for `rlibs` built by older compilers. Part of https://github.com/rust-lang/rust/issues/138243.
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.