Skip to content

Four build targets can't be stored by the machine-wide build cache (#1899): with-sha256's debug map names the worktree; link-metadata lists SDK archives by absolute path; sdk-clang-main writes into .deps #2016

Closed

Description

@ehartford

After #1899 (wave-build2 e067117e) every cacheable target is served from ~/.local/with-build-cache except these, which the build now names when they run:

  • with-sha256: the driver compiles this Executable in-process and its debug map names the worktree, because the file-prefix map (D50, WITH_FILE_PREFIX_MAP) is only set for stage actions — a D50 'one tree, one binary, in any worktree' violation: every in-process compile must get the prefix map.
  • bootstrap-llvm-link-metadata and stage1-llvm-link-metadata: the lld response file lists SDK archives by absolute path (lld resolves against cwd). Spell them relative to a root the action names, as Battery on a fresh worktree re-runs every test and rebuilds every stage the layers' gates already built: the build/test cache is per-worktree, not keyed on inputs machine-wide #1899 did for the embedded-object assembly.
  • sdk-clang-main: modifies the SDK under .deps (outside out/) — a target mutating an input directory. It must write its output under out/ and leave .deps read-only.
  • (Linux) sysroot-zig-source extracts into .deps/src for linux-sysroot; give it its own scratch like darwin-sysroot now has.
    Done when a second worktree's :dev re-runs none of them.

Activity

  1. added
    bug
    on Oct 3, 2026
  2. added 4 commits that reference this issue on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions