about summary refs log tree commit diff
path: root/src/libsyntax/errors
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-05-08 22:37:49 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-05-12 11:06:11 -0700
commitf1ab6648fc67ff8af274d2e65a400de9af0e9ddf (patch)
tree27f06f28bd15903946b1a343be12dce95957f3f7 /src/libsyntax/errors
parent7132092ce6e954eb58d490fa886d0865c5cfba38 (diff)
downloadrust-f1ab6648fc67ff8af274d2e65a400de9af0e9ddf.tar.gz
rust-f1ab6648fc67ff8af274d2e65a400de9af0e9ddf.zip
rustc_back: Only use archive member filenames
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.
Diffstat (limited to 'src/libsyntax/errors')
0 files changed, 0 insertions, 0 deletions