Skip to content

Build: add an opt-in macOS ccache preset - #57

Closed
dayfine wants to merge 8 commits into
mainfrom
build/local-ccache
Closed

dayfine wants to merge 8 commits into
mainfrom
build/local-ccache

Conversation

@dayfine

@dayfine dayfine commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Every new worktree or branch switch on Mac meant a full 13–14 minute rebuild. This adds an opt-in macos-ccache preset (RelWithDebInfo plus a shared 10 GB ccache with checkout-relative paths, so worktrees can share cached compiles) and a short guide linked from the Mac build instructions; other presets and CI are unchanged. Tested on Apple Silicon: a second worktree at the same revision built in 41 s with 1,601 of 1,607 compiles from the cache, and a one-file edit rebuilt and linked in 21 s.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E

@dayfine
dayfine marked this pull request as ready for review October 29, 2026 16:33
Drop the separate overview page and the unrelated UpdateClang link change.
State the ccache 4.8 minimum (per-compilation settings on the command
line), mention dependency options a normal build may need, and record the
same-revision second-worktree result.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
@dayfine

dayfine commented Oct 29, 2026

Copy link
Copy Markdown
Owner Author

Sent upstream as PokemonAutomation#1767 (single commit on upstream main, branch build/macos-ccache-preset).

dayfine and others added 4 commits October 29, 2026 11:15
A full build adds about 250 MB compressed, so 5 GB still holds around 20
revisions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AKYzhrMnPK61XHWEch4a6E
@dayfine dayfine added game:shared Shared or game-neutral code lab-tooling Lab channel, CFR, scripts, run records, build labels Nov 1, 2026
dayfine added a commit that referenced this pull request Nov 1, 2026
@dayfine

dayfine commented Nov 1, 2026

Copy link
Copy Markdown
Owner Author

Closed: the recipe is kept as tools/ccache.md on the agents branch (plain -D flags, no preset needed); the preset itself stays on branch build/local-ccache. Upstream copy PokemonAutomation#1767 was not merged.

@dayfine dayfine closed this Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

game:shared Shared or game-neutral code lab-tooling Lab channel, CFR, scripts, run records, build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant