[LLVMdev] sys::path::system_temp_directory vs. sys::fs::createTemporaryFile

Rafael EspĂ­ndola rafael.espindola at gmail.com
Wed Aug 13 07:57:06 PDT 2014


> It looks like OS X always has TMPDIR set these days (to the value of
> _CS_DARWIN_USER_TEMP_DIR), so I think we should just go with TMPDIR if it's
> set and non-empty, and then fall back to confstr. However, we should not be
> using TMPDIR if ErasedOnReboot is false (i.e. if we'd prefer
> _CS_DARWIN_USER_CACHE_DIR). Unfortunately there's no canonical environment
> variable for that.
>
> CCing Greg to see if that makes sense.

OK, so I guess something like this?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 7578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140813/1a3248cf/attachment.bin>


More information about the llvm-dev mailing list