Conversation
Zig 0.15 removed the option shape build.zig was using:
error: no field named 'root_source_file' in struct
'Build.ExecutableOptions'
Target and optimize now live on a module created with b.createModule,
which is passed as .root_module. addStaticLibrary and addSharedLibrary
are folded into addLibrary with an explicit .linkage.
This turned out to be forward-compatible rather than a cutover: 0.14.1
already accepts the newer API, and only 0.15 removed the older one. So
build.zig now works on both, verified at 13/13 build steps and 56/56
tests on each. CI runs a matrix over both versions so that stays true
rather than being assumed.
No source changes were needed. 0.15's std.Io rework does not reach
azazel, whose suites are pure computation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zig 0.15 removed the option shape
build.zigwas using:Target and optimize now live on a module created with
b.createModule, passed as.root_module.addStaticLibraryandaddSharedLibraryfold intoaddLibrarywith an explicit.linkage.This is forward-compatible, not a cutover
Worth stating clearly, because it changes how the rest of the migration should be approached: 0.14.1 already accepts the newer API. Only 0.15 removed the older one. So
build.zignow works on both.CI runs a matrix over both so that compatibility stays verified rather than assumed.
No source changes needed
0.15's
std.Iorework ("writergate") does not reach azazel. Its suites are pure computation with no IO surface. danzig and zaza may differ, and will be handled separately.🤖 Generated with Claude Code