HomePhabricator

[libcxx] Implement temp_directory_path using GetTempPath on windows

Authored by mstorsjo on Oct 29 2020, 3:10 AM.

Description

[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