Commit 82b6fa5
authored
### Rationale for this change
By default, ccache hashes the path to the current directory in its cache key. However, some builds put their source files in a temporary directory (such as Python builds), which makes caching inefficient as the current directory is different everytime.
### What changes are included in this PR?
Disable the ccache `hash_dir` option on CI, using an environment variable.
### Are these changes tested?
Yes, by existing CI jobs.
I also checked locally using `ccache -s` that this improves the caching of compiled C++ artifacts (from the source files in `python/pyarrow/src`) when building PyArrow.
### Are there any user-facing changes?
No.
* GitHub Issue: #50208
Authored-by: Antoine Pitrou <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent 9cb051b commit 82b6fa5
2 files changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
0 commit comments