[libcxx] Implement temp_directory_path using GetTempPath on windows
authorMartin Storsjö <martin@martin.st>
Thu, 29 Oct 2020 10:10:26 +0000 (12:10 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 5 Feb 2021 20:47:33 +0000 (22:47 +0200)
commitd4f4e723d0b4f09d72880f1679c02d586bf8abfa
tree666eb160486c67e6bd59c2914ad572e1106b1b05
parent4d292d531bea6f7a6021f212e59b3826bc7cd913
[libcxx] Implement temp_directory_path using GetTempPath on windows

This does roughly the same as the manual implementation, but checks
a slightly different set of environment variables and has a more
appropriate fallback if no environment variables are available
(/tmp isn't a very useful fallback on windows).

Differential Revision: https://reviews.llvm.org/D91175
libcxx/src/filesystem/operations.cpp