This is an archive of the discontinued LLVM Phabricator instance.

[12/N] [libcxx] Sanitize paths before creating symlinks on windows
ClosedPublic

Authored by mstorsjo on Nov 10 2020, 1:48 AM.

Details

Summary

The STL does even more cleanup (corresponding to lexically_normal I think), but this seems to be the very minimum needed for making the symlinks work when the target path contains non-native paths.

I guess this could be squashed into patch 11, but this adds a test case for making sure the created symlinks really work.

Diff Detail

Event Timeline

mstorsjo created this revision.Nov 10 2020, 1:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 10 2020, 1:49 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald Transcript
ldionne accepted this revision.Nov 10 2020, 4:31 AM
This revision is now accepted and ready to land.Nov 10 2020, 4:31 AM
ldionne added a subscriber: EricWF.Nov 10 2020, 4:32 AM

@EricWF can you have a look at this?

rnk removed a reviewer: rnk.Nov 10 2020, 12:27 PM
amccarth accepted this revision.Dec 3 2020, 2:25 PM

LGTM

mstorsjo updated this revision to Diff 320067.Jan 29 2021, 12:39 AM
mstorsjo removed rG LLVM Github Monorepo as the repository for this revision.
mstorsjo set the repository for this revision to rG LLVM Github Monorepo.

Rebased, rerunning CI before pushing