[Support/Unix] system_temp_directory: Use envvar var regardless of ErasedOnReboot

Tim Bodeit via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 16 20:01:03 PST 2015


In lib/Support/Path.h the documentation for system_temp_directory contains:
@param erasedOnReboot […] This parameter will be ignored if the user or system has set the typical environment variable […]

In my eyes on Unix the method currently does the exact opposite: It behaves the other way around by ignoring the environment variable if the parameter is set.

I included a patch that changes this.
It does what I personally need, but I’m not 100% sure yet that this is generally the desired behavior.

If it is not, I feel that instead of this patch the documentation in Path.h should be fixed or clarified.

I’m happy to include test coverage for this if needed, but I would first like to confirm the desired behavior.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151217/fc9b7250/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Support-Unix-system_temp_directory-Use-envvar-var-re.patch
Type: application/octet-stream
Size: 1426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151217/fc9b7250/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151217/fc9b7250/attachment-0001.html>


More information about the llvm-commits mailing list