- Shared writable directories like /tmp are a security problem.
- Systems provide dedicated cache directories these days anyway.
As a followup, I hope to deprecate LLVM's llvm::sys::path::system_temp_directory(). See: https://reviews.llvm.org/D82259
| Paths 
 |  Differential  D82362  
Move default module cache from system temporary directory ClosedPublic Authored by davezarzycki on Jun 23 2020, 3:13 AM. 
Details Summary 
 As a followup, I hope to deprecate LLVM's llvm::sys::path::system_temp_directory(). See: https://reviews.llvm.org/D82259 
Diff Detail 
 Event TimelineComment Actions Can you update the commit message to also reflect the change in cache_directory behavior? (This is going to move clangd index files on macOS, for instance... I think that's OK, but let's not bury it) 
 This revision is now accepted and ready to land.Jun 24 2020, 3:17 PM Closed by commit rGbb26838ceffb: [clang driver] Move default module cache from system temporary directory (authored by davezarzycki).  ·  Explain WhyJun 26 2020, 4:51 AM This revision was automatically updated to reflect the committed changes. Comment Actions Looks like this breaks tests on Mac: http://45.33.8.238/mac/16222/step_11.txt Please take a look and revert for now if this takes a while to fix. 
Revision Contents 
 
 
Diff 273674 clang/docs/ReleaseNotes.rst
 clang/include/clang/Driver/Driver.h
 clang/lib/Driver/ToolChains/Clang.cpp
 
 clang/test/Driver/modules-cache-path.m
 clang/unittests/Driver/ModuleCacheTest.cpp
 llvm/lib/Support/Unix/Path.inc
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
what happens in the else case?