Use the Posix TMPDIR logic, as D can be used from the command-line too on Android.

This commit is contained in:
Joakim 2017-09-16 12:56:33 +05:30
parent 008064792c
commit ee4036a53a

View file

@ -4353,11 +4353,6 @@ string tempDir() @trusted
DWORD len = GetTempPathW(buf.length, buf.ptr); DWORD len = GetTempPathW(buf.length, buf.ptr);
if (len) cache = buf[0 .. len].to!string; if (len) cache = buf[0 .. len].to!string;
} }
else version(Android)
{
// Don't check for a global temporary directory as
// Android doesn't have one.
}
else version(Posix) else version(Posix)
{ {
import std.process : environment; import std.process : environment;