llvm/lib/Support/Windows
Pawel Bylica 790e8d91ff [Support] Tweak path::system_temp_directory() on Windows.
Summary:
This patch changes the behavior of path::system_temp_directory() on Windows to be closer to GetTempPath Windows API call. Enforces path separator to be the native one, makes path absolute, etc. GetTempPath is not used directly because of limitations/implementation bugs on Windows 7.

Windows specific unit tests are added. Most of them runs in separated process with modified environment variables.

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).

Reviewers: chapuni, rafael, aaron.ballman

Subscribers: rafael, llvm-commits

Differential Revision: http://reviews.llvm.org/D14231

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253345 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-17 16:54:32 +00:00
..
COM.inc Windows/COM.inc: Fix emacs mode in the first line. 2015-08-05 06:11:08 +00:00
DynamicLibrary.inc [Support] Lazy load of dbghlp.dll on Windows 2015-07-02 14:34:57 +00:00
explicit_symbols.inc [Cygming] Seek also chkstk_ms, or JIT fails with DLL builds. It is fixup for r227519. 2015-01-30 13:01:19 +00:00
Host.inc
Memory.inc [Support] Fix a race initializing a static local in MSVC 2015-06-11 22:22:45 +00:00
Mutex.inc
Path.inc [Support] Tweak path::system_temp_directory() on Windows. 2015-11-17 16:54:32 +00:00
Process.inc Report Windows error code in a fatal error after a system call. 2015-11-11 20:49:32 +00:00
Program.inc Windows: Fixed sys::findProgramByName to work with files containing dot in their name. 2015-10-08 16:03:19 +00:00
RWMutex.inc
Signals.inc Fix a signed/unsigned mismatch warning; NFC. 2015-11-05 14:22:56 +00:00
ThreadLocal.inc ThreadLocal: Return a mutable pointer if templated with a non-const type 2014-12-15 01:04:45 +00:00
TimeValue.inc Fix lib\support\Windows/TimeValue.inc(48): warning C4189: 2015-04-15 07:45:52 +00:00
Watchdog.inc
WindowsSupport.h Require Windows API of version 6.1 (Windows 7). 2015-10-15 14:50:31 +00:00