summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorPawel Bylica <chfast@gmail.com>2015-11-17 16:54:32 +0000
committerPawel Bylica <chfast@gmail.com>2015-11-17 16:54:32 +0000
commita90e74510911aff36bba06d80dd216c8c89fd7ae (patch)
tree6bee9f48b8cb69b343fae49f17e16fe79819e201 /clang/lib/Driver/Tools.cpp
parent88ddeae8bda08376ddb05e47c5e5ca6f83454131 (diff)
downloadbcm5719-llvm-a90e74510911aff36bba06d80dd216c8c89fd7ae.tar.gz
bcm5719-llvm-a90e74510911aff36bba06d80dd216c8c89fd7ae.zip
[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
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud