[PATCH] PR21482: long paths on Windows

David Majnemer david.majnemer at gmail.com
Mon Nov 10 13:42:24 PST 2014


This patch doesn't kick in if we have a really big relative path.  Would it
make sense for us to make the path absolute (using GetCurrentDirectory) and
then prefix it with \\?\ ?

On Mon, Nov 10, 2014 at 1:01 PM, Robinson, Paul <
Paul_Robinson at playstation.sony.com> wrote:

> Support directory names longer than 248 characters on Windows.
>
> The normal Windows path limit is 260 characters; the limit for directory
> names is 248, to leave room for an 8.3 filename at the end.  Adding the
> '\\?\' prefix greatly expands these limits.  Intercept path names that
> we are about to pass to the Windows APIs and add the prefix if necessary.
>
> Also correct the comment about the state of the temporary directory used
> by the Support unittests.
> --paulr
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141110/3775b6f5/attachment.html>


More information about the llvm-commits mailing list