]> granicus.if.org Git - clang/commit
Make the default module cache user-specific
authorBen Langmuir <blangmuir@apple.com>
Tue, 3 Feb 2015 19:28:37 +0000 (19:28 +0000)
committerBen Langmuir <blangmuir@apple.com>
Tue, 3 Feb 2015 19:28:37 +0000 (19:28 +0000)
commit3ccf5ebba01bb09f0f7d5aa553fbc408c69dbd9e
treef8274a0905e2a7c6e78e2a639767d436ed4a6109
parentdfed5475baa054a26a1882a6c2f09a9325ec2815
Make the default module cache user-specific

Appends the username to the first component (after the temp dir) of the
module cache path.  If the username contains a character that shouldn't
go into a path (for now conservatively allow [a-zA-Z0-9_]), we fallback
to the user id.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228013 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/modules-cache-path.m [new file with mode: 0644]