Skip to content

refactor: share Zig compilation setup across execution modes - #707

Open
cerisier wants to merge 2 commits into
cerisier/zig-static-library-link-semanticsfrom
cerisier/incremental-compile-arguments
Open

cerisier wants to merge 2 commits into
cerisier/zig-static-library-link-semanticsfrom
cerisier/incremental-compile-arguments

Conversation

@cerisier

@cerisier cerisier commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Before

Ordinary and incremental Zig builds assembled compiler arguments in separate places. Target and build settings were wired into each path separately, and the primary compile action was registered in several rule-specific branches. That made it easy for the two paths to drift when a flag or output changed.

After

Each rule selects the Zig command and outputs once. Both paths use the same compiler setup and a single place to register the primary compile action. The direct Zig invocation and the worker each receive the argument format they expect.

@cerisier
cerisier force-pushed the cerisier/incremental-compile-arguments branch from 1130372 to 7bba17b Compare November 20, 2026 17:57
@cerisier
cerisier added this pull request to stack #710 November 20, 2026 18:06
@cerisier
cerisier force-pushed the cerisier/incremental-compile-arguments branch from 7bba17b to 7bd592c Compare November 20, 2026 20:39
@cerisier
cerisier removed this pull request from stack #710 November 20, 2026 20:40
@cerisier
cerisier changed the base branch from main to cerisier/zig-static-archive-link-setting November 20, 2026 20:41
@cerisier
cerisier force-pushed the cerisier/incremental-compile-arguments branch from 7bd592c to 2e287c2 Compare November 21, 2026 21:51
@cerisier
cerisier changed the base branch from cerisier/zig-static-archive-link-setting to cerisier/zig-static-library-link-semantics November 21, 2026 21:51
@cerisier
cerisier added this pull request to stack #713 November 21, 2026 22:12
@cerisier
cerisier marked this pull request as ready for review November 21, 2026 22:12
@cerisier
cerisier removed this pull request from stack #713 November 21, 2026 22:17
@cerisier
cerisier added this pull request to stack #714 November 21, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant