[PATCH] D14231: [Support] Use GetTempDir to get the temporary dir path on Windows.

Paweł Bylica via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 2 05:39:29 PST 2015


chfast created this revision.
chfast added a subscriber: llvm-commits.
chfast set the repository for this revision to rL LLVM.

In general GetTempDir follows the same logic as the replaced code: checks env variables TMP, TEMP, USERPROFILE in order. However, it also perform other checks like making separators native (\), making the path absolute, etc.

This change fixes FileSystemTest.CreateDir unittest that had been failing when run from Unix-like shell on Windows (Unix-like path separator (/) used in env variables).

Repository:
  rL LLVM

http://reviews.llvm.org/D14231

Files:
  lib/Support/Windows/Path.inc
  unittests/Support/Path.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14231.38899.patch
Type: text/x-patch
Size: 4194 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151102/e5fb7ecc/attachment-0001.bin>


More information about the llvm-commits mailing list