GitXplorerGitXplorer
k

libpcre.zig

public
22 stars
5 forks
1 issues

Commits

List of commits on branch main.
Verified
1dc32407368651bc0118b752288c3b87af12ff50

Merge pull request #23 from kivikakk/failing-test

kkivikakk committed 3 months ago
Unverified
8a171dc8c6b70856b5765f6f271f585e3894fb6b

build.zig.zon: use https://github.com/kivikakk/pcre-8.45/commits/6a08aa250b3ca1deea5fbc5f696bb4e25ac2da90.

kkivikakk committed 3 months ago
Unverified
ffa9ef0ef4adb59a6ddebd0aa7d43323ceb4db6d

workflows: try reproduce on CI.

kkivikakk committed 3 months ago
Unverified
0d18a24346273177ecc909dfc071b8f46b0cd4c3

reduce test case.

kkivikakk committed 3 months ago
Unverified
dd153172b1a6c889898d9387db3a9e9840a302e7

main.zig: this is segfaulting for me on arm64 mac. how about CI?

kkivikakk committed 3 months ago
Verified
42409aed26f619cfb576940791b82689e0a7cb1d

Merge pull request #22 from kivikakk/build-0.13-too

kkivikakk committed 3 months ago

README

The README file for this repository.

Build status

Use via the zig package manager (Zig v0.12+):

$ zig fetch --save https://github.com/kivikakk/libpcre.zig/archive/<commit hash>.tar.gz

Then add the following to build.zig (a source build of pcre will be linked against automatically):

const pcre_pkg = b.dependency("libpcre.zig", .{ .optimize = optimize, .target = target });
const pcre_mod = pcre_pkg.module("libpcre");
exe.root_module.addImport("pcre", pcre_mod);

To link against the system libpcre, add the system_library build option like this:

Note, only the following systems support this mode:

  • Linux: apt install pkg-config libpcre3-dev

  • macOS: brew install pkg-config pcre

  • Windows: install vcpkg, vcpkg integrate install, vcpkg install pcre --triplet x64-windows-static

    Zig doesn't have vcpkg integration any more. Suggestions welcome!

const pcre_pkg = b.dependency("libpcre.zig", .{ .optimize = optimize, .target = target, .system_library = "true" });