Repository navigation
fix: support Zig 0.17 alongside 0.15 and 0.16 - #1
Merged
Merged
Conversation
Feature-detect build argument passthrough and retain the legacy fallback. Use portable array initialization and width-matched SIMD masks without adding a compatibility layer. Add SIMD boundary coverage, preserve the Zig 0.15.2/0.16.0 CI lanes, add 0.17.0 and verify run/bench argument forwarding. Document the Zig 0.15.2 macOS 27 build-runner limitation. Validated native/WASM builds, 411 Debug tests, 411 ReleaseSafe tests and argument-forwarding smoke tests on each version: 0.15.2 on Linux arm64; 0.16.0 and 0.17.0 on macOS arm64.
Owner
Author
|
Superseded by the upstream PR: Lulzx#12. The patch is intended for Lulzx/zpdf main, using trvon:fix/zig-0.17-compat as the head branch. |
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.
Changes
Run.addPassthruArgs()and keepb.argsfor older Zig versions.std.meta.Intwith width-matched SIMD mask types.@splat(null)for CLI and WASM arrays.No new compatibility module, dependencies, runtime switches, or version-number dispatch.
Validation
Portable toolchains were SHA-256 checked against the official Zig download index. Formatting and
git diff --checkpassed.Platform caveat
Zig 0.15.2 cannot link its native build runner on macOS 27 arm64; an empty standalone test reproduces the native linker failure. Targeting macOS 26 fixes a direct test but not the native build runner. The README recommends Zig 0.16.0 or 0.17.0 on that host. No source workaround is added.
Integration
This PR changes the zpdf fork only. The YAMS submodule pin is unchanged. Merge or rebase this PR rather than squash before YAMS pins the resulting commit. Remote CI results are pending.