]> granicus.if.org Git - llvm/commit
Support: Work around missing SetFileInformationByHandle on Wine
authorHans Wennborg <hans@hanshq.net>
Wed, 11 Oct 2017 22:04:14 +0000 (22:04 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 11 Oct 2017 22:04:14 +0000 (22:04 +0000)
commitb4627db34f35839793634be9f0ae36d0ecc0871f
treeb062ba309b5b04348f386a13c0162c257b7b7fcb
parentc6786861d6b0eef92baad1880c6807d2a78bff74
Support: Work around missing SetFileInformationByHandle on Wine

In r315079, fs::rename was reimplemented in terms of CreateFile and
SetFileInformationByHandle. Unfortunately, the latter isn't supported by
Wine. This adds a fallback to MoveFileEx for that case.

Differential Revision: https://reviews.llvm.org/D38817

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315520 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Windows/Path.inc