]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #25238 - alexcrichton:fix-archive-with-slashes, r=brson
authorbors <bors@rust-lang.org>
Thu, 14 May 2015 05:25:43 +0000 (05:25 +0000)
committerbors <bors@rust-lang.org>
Thu, 14 May 2015 05:25:43 +0000 (05:25 +0000)
I've been working with some archives generated by MSVC's `lib.exe` tool lately,
and it looks like the embedded name of the members in those archives sometimes
have slahes in the name (e.g. `foo/bar/baz.obj`). Currently the compiler chokes
on these paths as it assumes that each file in the archive is only the filename
(which is what unix does).

This commit interprets the name of each file in all archives as a path and then
only uses the `file_name` portion of the path to extract the file to a separate
location and then reassemble it back into a new archive later. Note that
duplicate filenames are already handled, so this won't introduce any conflicts.


Trivial merge