Skip to content

Build: make docs and coverage respect the build system more - #185

Merged
vancluever merged 1 commit into
mainfrom
make-build-zig-gooder-lol
Sep 18, 2026
Merged

vancluever merged 1 commit into
mainfrom
make-build-zig-gooder-lol

Conversation

@vancluever

@vancluever vancluever commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

The install_prefix field of std.Build has been removed in Zig 0.17.0. Additionally, it sits outside of the build dependency chain, which has always made it a bit of a no-no to use, even if it was a convenient way to get the zig-out directory for a project.

This migrates all documentation steps and the coverage step to forms that are more respectful of how the build system is supposed to work. Namely, we now lean on a lot more cache-friendly processes through functions like addWriteFiles, addOutputFileArg, addOutputDirectoryArg, addCopyFile, captureStdOut, etc.

Care has been taken to ensure that repeated runs of commands do not break artifacts like generated documentation; now running a command over and over will won't create additional cache entries, and it will not break what's already there - the sed commands won't create nonsense, for example.

Additionally, we've removed the docs step as it's not longer necessary - the only thing that generates an artifact in zig-out now is docs-bundle.

This should help with the bulk of the migration of the build.zig file to Zig 0.17.0.

The install_prefix field of std.Build has been removed in Zig 0.17.0.
Additionally, it sits outside of the build dependency chain, which has
always made it a bit of a no-no to use, even if it was a convenient way
to get the zig-out directory for a project.

This migrates all documentation steps and the coverage step to forms
that are more respectful of how the build system is supposed to work.
Namely, we now lean on a lot more cache-friendly processes through
functions like addWriteFiles, addOutputFileArg, addOutputDirectoryArg,
addCopyFile, captureStdOut, etc.

Care has been taken to ensure that repeated runs of commands do not
break artifacts like generated documentation; now running a command over
and over will won't create additional cache entries, and it will not
break what's already there - the sed commands won't create nonsense, for
example.

Additionally, we've removed the "docs" step as it's not longer necessary
- the only thing that generates an artifact in zig-out now is
"docs-bundle".

This should help with the bulk of the migration of the build.zig file to
Zig 0.17.0.
@vancluever
vancluever merged commit 996a239 into main Sep 18, 2026
2 checks passed
@vancluever
vancluever deleted the make-build-zig-gooder-lol branch September 18, 2026 00:39
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