Commit 4dba110
committed
Apply React Native's ccache tuning to the Xcode build
The first green run cached almost nothing: 2160 of 2190 calls uncacheable,
and the 30 hits came from the CMake bootstrap rather than Xcode.
React Native ships scripts/xcode/ccache.conf for exactly this, but it only
takes effect through their ccache-clang.sh wrapper, which sets
CCACHE_CONFIGPATH to it. Moving ccache to a compiler launcher dropped the
wrapper and with it that config, leaving ccache on its defaults — under
which Xcode's -fmodules, precompiled headers, -index-store-path and
-ivfsoverlay all make a compile "too hard" to cache.
So set the same options directly. They land in the config file the ccache
action already writes, which is where the launcher's ccache reads them from,
so the previous CCACHE_DIR/MAXSIZE/COMPILERCHECK exports are now redundant
and go.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UxzZtpa5Nz3F8ACXzX7Hww1 parent da7fc9a commit 4dba110
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
202 | 206 | | |
203 | | - | |
204 | | - | |
205 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| |||
0 commit comments