Skip to content

Commit 892b8b9

Browse files
committed
update to latest zig
1 parent 662b7d1 commit 892b8b9

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.zig-cache
2-
zig-cache
3-
zig-out
4-
zig-pkg
1+
.zig-cache/
2+
zig-out/
3+
zig-pkg/

‎build.zig‎

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,10 @@ pub fn build(b: *std.Build) void {
9494
.HAVE_SYS_STAT_H = true,
9595
.HAVE_SYS_TYPES_H = true,
9696
.HAVE_UNISTD_H = true,
97-
.PACKAGE = "expat",
9897
.PACKAGE_BUGREPORT = "https://github.com/libexpat/libexpat/issues",
9998
.PACKAGE_NAME = "expat",
10099
.PACKAGE_STRING = b.fmt("expat {f}", .{version}),
101100
.PACKAGE_TARNAME = "expat",
102-
.PACKAGE_URL = "",
103101
.PACKAGE_VERSION = b.fmt("{f}", .{version}),
104102
.STDC_HEADERS = true,
105103
.WORDS_BIGENDIAN = target.result.cpu.arch.endian() == .big,
@@ -171,10 +169,7 @@ pub fn build(b: *std.Build) void {
171169
}
172170

173171
const run_xmlwf_cmd = b.addRunArtifact(xmlwf);
174-
175-
if (b.args) |args| {
176-
run_xmlwf_cmd.addArgs(args);
177-
}
172+
run_xmlwf_cmd.addPassthruArgs();
178173

179174
const xmlwf_step = b.step("xmlwf", "run xmlwf");
180175
xmlwf_step.dependOn(&run_xmlwf_cmd.step);
@@ -252,9 +247,7 @@ pub fn build(b: *std.Build) void {
252247
}
253248

254249
const run_test_cmd = b.addRunArtifact(test_exe);
255-
if (b.args) |args| {
256-
run_test_cmd.addArgs(args);
257-
}
250+
run_test_cmd.addPassthruArgs();
258251
test_step.dependOn(&run_test_cmd.step);
259252
}
260253

@@ -274,9 +267,7 @@ pub fn build(b: *std.Build) void {
274267
benchmark.root_module.linkLibrary(expat);
275268

276269
const run_benchmark_cmd = b.addRunArtifact(benchmark);
277-
if (b.args) |args| {
278-
run_benchmark_cmd.addArgs(args);
279-
}
270+
run_benchmark_cmd.addPassthruArgs();
280271

281272
const benchmark_step = b.step("benchmark", "Run benchmark");
282273
benchmark_step.dependOn(&run_benchmark_cmd.step);

0 commit comments

Comments
 (0)