You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TSCBasic: repair the Windows build after swiftlang#277
This fixes multiple issues with the file locking implementation on
Windows. `AbsolutePath.root` is meaningless on Windows - there is
no concept of a singular root on Windows, instead you have have 26
individual roots - A-Z. Stripping the count of characters for the
root path leaves us with an invalid path string as the root drives
have been stripped. The next character is an invalid character on
most file systems, and so we must replace `:`. Instead of using a
`MAX_NAME` to compute a length of the ARC, enforce a limit for the
complete path (though an ARC would be limited to 255 codepoints on
NTFS). This incidentally also corrects the emitted path, previous
path computation left us with the file in PWD.
0 commit comments