Skip to content

Commit 5eb06cd

Browse files
committed
Rename zig build pcre vars to pcre2
1 parent 9165134 commit 5eb06cd

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎build.zig‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,12 @@ pub fn build(b: *std.Build) !void {
284284
features.addValues(.{ .GIT_HTTPPARSER_BUILTIN = 1 });
285285
}
286286
if (target.result.os.tag != .macos) {
287-
const pcre = b.createModule(.{
287+
const pcre2 = b.createModule(.{
288288
.target = target,
289289
.optimize = optimize,
290290
.link_libc = true,
291291
});
292-
pcre.addConfigHeader(b.addConfigHeader(
292+
pcre2.addConfigHeader(b.addConfigHeader(
293293
.{ .style = .{ .cmake = libgit_src.path("deps/pcre2/config.h.in") } },
294294
.{
295295
.PCRE2_EXPORT = null,
@@ -306,10 +306,10 @@ pub fn build(b: *std.Build) !void {
306306
.PCRE2GREP_MAX_BUFSIZE = 1048576,
307307
},
308308
));
309-
pcre.addIncludePath(libgit_src.path("deps/pcre2"));
310-
pcre.addCSourceFiles(.{
309+
pcre2.addIncludePath(libgit_src.path("deps/pcre2"));
310+
pcre2.addCSourceFiles(.{
311311
.root = libgit_src.path("deps/pcre2"),
312-
.files = &sources.pcre,
312+
.files = &sources.pcre2,
313313
.flags = &.{
314314
"-Wno-unused-function",
315315
"-Wno-implicit-fallthrough",
@@ -321,7 +321,7 @@ pub fn build(b: *std.Build) !void {
321321
mod.linkLibrary(b.addLibrary(.{
322322
.name = "pcre2",
323323
.linkage = .static,
324-
.root_module = pcre,
324+
.root_module = pcre2,
325325
}));
326326
features.addValues(.{ .GIT_REGEX_BUILTIN = 1 });
327327
}

‎build/sources.zon‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@
200200
"llhttp.c",
201201
},
202202

203-
// deps/pcre
204-
.pcre = .{
203+
// deps/pcre2
204+
.pcre2 = .{
205205
"pcre2_auto_possess.c",
206206
"pcre2_chartables.c",
207207
"pcre2_chkdint.c",

0 commit comments

Comments
 (0)