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

Jordan Rose jordan_rose at apple.com
Thu Aug 14 09:32:11 PDT 2014


On Aug 13, 2014, at 7:57 , Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

>> 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?

Well, that changes behavior on Linux; previously it did honor TMPDIR when looking for a cache directory. Is that okay? (The Windows version is also honoring TEMP in this case.)

What are we using the cache dir for besides the module cache?

Jordan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140814/83c1746a/attachment.html>


More information about the llvm-dev mailing list