tomasol opened PR #13535 from tomasol:remove-mtime-from-cache to bytecodealliance:main:
Change the codegen cache key:
- Git builds (Wasmtime developers): cache key is
{compiler}-{sha}-{mtime}, so successive local rebuilds don't share cached compilations from prior source states.- Non-git builds (crates.io embedders): cache key is
{compiler}-{version}, which is stable across rebuilds and lets debug-build embedders reuse the cache.
debug_assertionsno longer affects the cache directory.Also fix bug where exit status of
git rev-parse HEADwas not checked.Closes #13526
tomasol requested dicej for a review on PR #13535.
tomasol requested wasmtime-core-reviewers for a review on PR #13535.
tomasol requested fitzgen for a review on PR #13535.
tomasol requested wasmtime-default-reviewers for a review on PR #13535.
:thumbs_up: alexcrichton submitted PR review:
Thanks!
alexcrichton added PR #13535 wasmtime-cache: Gate mtime in cache key on git presence, not debug_assertions to the merge queue.
github-merge-queue[bot] removed PR #13535 wasmtime-cache: Gate mtime in cache key on git presence, not debug_assertions from the merge queue.
alexcrichton added PR #13535 wasmtime-cache: Gate mtime in cache key on git presence, not debug_assertions to the merge queue.
github-merge-queue[bot] removed PR #13535 wasmtime-cache: Gate mtime in cache key on git presence, not debug_assertions from the merge queue.
alexcrichton added PR #13535 wasmtime-cache: Gate mtime in cache key on git presence, not debug_assertions to the merge queue.
github-merge-queue[bot] removed PR #13535 wasmtime-cache: Gate mtime in cache key on git presence, not debug_assertions from the merge queue.
alexcrichton added PR #13535 wasmtime-cache: Gate mtime in cache key on git presence, not debug_assertions to the merge queue.
:check: alexcrichton merged PR #13535.
alexcrichton removed PR #13535 wasmtime-cache: Gate mtime in cache key on git presence, not debug_assertions from the merge queue.
Last updated: Jul 29 2026 at 05:03 UTC