Skip to content

Derive the Zig library version from cortext_version - #35

Merged
gabewillen merged 1 commit into
mainfrom
fix/zig-library-version
Oct 21, 2026
Merged

gabewillen merged 1 commit into
mainfrom
fix/zig-library-version

Conversation

@gabewillen

Copy link
Copy Markdown
Contributor

build.zig set the shared library's version as its own literal, so the v2.0.0 bump left the library files named 1.3.3 (libcortext.so.1.3.3, libcortext.1.3.3.dylib).

  • Fix: build.zig now parses the version from cortext_version, so the two can't drift. RELEASE.md says so.
  • Not affected: CORTEXT_VERSION, the C API version and the release tarball names were already correct.
  • Verified: a Zig 0.15.2 cross-build for x86_64-linux produces libcortext.so.2.0.0 and libcortext.so.2.
  • Release: v2.0.0 stays as published; this lands for the next release.

build.zig kept the shared library at 1.3.3 (libcortext.so.1.3.3,
libcortext.1.3.3.dylib) after the v2.0.0 bump because the version was a
separate literal. Parse it from cortext_version so the two cannot drift;
CORTEXT_VERSION and the C API already reported 2.0.0.
@gabewillen
gabewillen merged commit 995c93c into main Oct 21, 2026
12 checks passed
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