1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/lib/Support/Windows
Pawel Bylica 0fc3130a5d [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

llvm-svn: 253345
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
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
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