[PATCH] PR21482: long paths on Windows

Robinson, Paul Paul_Robinson at playstation.sony.com
Mon Nov 10 13:01:43 PST 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: path-abs2.patch
Type: application/octet-stream
Size: 7658 bytes
Desc: path-abs2.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141110/1754714b/attachment.obj>


More information about the llvm-commits mailing list