mirror of
https://github.com/rust-lang/rust.git
synced 2026-07-14 03:38:26 -04:00
d34ae4e9cc
Move NativeLib::filename to the rmeta-link archive member Second PR in rust-lang/rust#138243 Moves `NativeLib::filename` out of `rmeta` into `lib.rmeta-link` archive member that was introduced in the first PR. Filename is a link time only data so requiring a full metadata decode should be avoided. It is stored as `(name, filename)` pairs keyed by name, the new `MetadataLoader::get_rlib_native_lib_filenames` patches it back on decode. Also bumped `METADATA_VERSION` from version 10 to 11. Added also new round trip test and existing bundled-libs tests still pass.