OSDN Git Service

[Support] Use FILE_SHARE_DELETE to fix RemoveFileOnSignal on Windows
authorReid Kleckner <rnk@google.com>
Fri, 4 Aug 2017 21:52:00 +0000 (21:52 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 4 Aug 2017 21:52:00 +0000 (21:52 +0000)
commit033f8efd27b44937696000ecfbaea01f563d5437
tree6378bf01315a5570a81a23dc60188cc8a5a7d463
parent7028c653a2f7c6103388d4b87bb18600c5ea37b1
[Support] Use FILE_SHARE_DELETE to fix RemoveFileOnSignal on Windows

Summary:
Tools like clang that use RemoveFileOnSignal on their output files
weren't actually able to clean up their outputs before this change.  Now
the call to llvm::sys::fs::remove succeeds and the temporary file is
deleted. This is a stop-gap to fix clang before implementing the
solution outlined in PR34070.

Reviewers: davide

Subscribers: llvm-commits, hiraditya

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

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