Skip to content

Add minimal Zig build scripts - #351

Open
clason wants to merge 1 commit into
JuliaStrings:masterfrom
clason:zig
Open

Add minimal Zig build scripts#351
clason wants to merge 1 commit into
JuliaStrings:masterfrom
clason:zig

Conversation

@clason

@clason clason commented Aug 30, 2026

Copy link
Copy Markdown

Targets Zig 0.16 (but works with Zig 0.17/master).

Compiles and installs a static library and headers for downstream
projects (Zig or C) using build.zig build scripts.

Closes #350 (I thought it easier to directly show what it would look like. Feel free to close the PR if you don't want these.)

Test with downloading the appropriate 0.16 tarball from https://ziglang.org/download/ and running path-to-extracted-folder/zig build at the repo root.

Targets Zig 0.16

Compiles and installs a static library and headers for downstream
projects (Zig or C) using `build.zig` build scripts.
Comment thread build.zig.zon
.{
.name = .utf8proc,
.fingerprint = 0xdcddf08dbb8954c4,
.version = "2.11.3",

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This number would need to be incremented when making a new release, so this does come with a slight maintenance burden.

(The fingerprint is a static ID and does not need to be changed.)

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.

Add Zig build script

1 participant