CLANG_MODULE_CACHE_PATH can be used to change where clang should put the module cache, or can be set to "" to disable caching entirely.
Details
Diff Detail
Unit Tests
Time | Test | |
---|---|---|
120 ms | x64 debian > Clang.Driver::modules-cache-path.m |
Event Timeline
To give a bit of context behind this change, we have noticed that as of D125331, a single run of libc++ test suites generates 3.1G of data inside Clang's module cache. This is problematic in CI where we quickly run out of disk space as a consequence. We would like to have a way to either change the cache path to a temporary location, or disable it altogether, that could be used without having to pass an extra flag to every compiler invocation.
clang/test/Driver/modules-cache-path.m | ||
---|---|---|
4 | The classic "harmless" cosmetic change that I don't need to run tests again for :) |
LGTM this would be really valuable for our use cases, but please wait a few more days to give other reviewers a chance to respond.
This needs a trailing slash.