Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Support] PR42623: Avoid setting the delete-on-close bit if a TempFil…
…e doesn't reside on a local drive On Windows, after commit 881ba10, tools using TempFile would error with "bad file descriptor" when writing the file on a network drive. It appears that setting the delete-on-close bit via SetFileInformationByHandle/FileDispositionInfo prevented it from accessing the file on network drives, and although using FILE_DISPOSITION_INFO seems to work, it causes other troubles. Differential Revision: https://reviews.llvm.org/D81803
- Loading branch information