Skip to content

Fix: Fetch SLJIT through the zig package manager for JIT builds - #922

Open
nankishre wants to merge 1 commit into
PCRE2Project:mainfrom
nankishre:main
Open

Fix: Fetch SLJIT through the zig package manager for JIT builds#922
nankishre wants to merge 1 commit into
PCRE2Project:mainfrom
nankishre:main

Conversation

@nankishre

@nankishre nankishre commented Jul 19, 2026

Copy link
Copy Markdown

Zig fetched git packages do not include submodule contents, which caused the following error while building pcre2 with JIT mode on:

image

So I made this tiny patch to fetch the pinned SLJIT revision through zig's package manager when JIT support is enabled and stage the fetched sources alongside pcre2_jit_compile.c. This works without modifying the C source or affecting non-JIT builds of pcre2.

Comment thread build.zig.zon
Update workflow to change commit # on zig config at submodule commit change.

Change SLJIT commit # to master for testing workflow

Sync autogenerated files #noupdate

Revert to pinned sljit commit hash

Sync autogenerated files #noupdate
@nankishre

Copy link
Copy Markdown
Author

Squashed some commits ^^

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.

2 participants