[PATCH] D82362: Move default module cache from system temporary directory

David Zarzycki via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 23 03:40:36 PDT 2020


davezarzycki created this revision.
davezarzycki added reviewers: compnerd, aprantl, jakehehrlich, espindola, respindola, ilya-biryukov, pcc, sammccall.
davezarzycki added projects: clang, LLVM.
Herald added a subscriber: hiraditya.

1. Shared writable directories like /tmp are a security problem.
2. 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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82362

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82362.272655.patch
Type: text/x-patch
Size: 6927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200623/7dbd1309/attachment-0001.bin>


More information about the cfe-commits mailing list