Skip to content

Commit 654ac52

Browse files
committed
remove usage of deprecated build system APIs
1 parent 1b84198 commit 654ac52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ pub fn build(b: *std.Build) void {
267267
});
268268
if (char_type != .char) benchmark.root_module.addCMacro("XML_UNICODE", "1");
269269
if (char_type == .wchar_t) benchmark.root_module.addCMacro("XML_UNICODE_WCHAR_T", "1");
270-
benchmark.addCSourceFile(.{
270+
benchmark.root_module.addCSourceFile(.{
271271
.file = upstream.path("expat/tests/benchmark/benchmark.c"),
272272
.flags = if (need_short_char_arg) &.{"-fshort-wchar"} else &.{},
273273
});
274-
benchmark.linkLibrary(expat);
274+
benchmark.root_module.linkLibrary(expat);
275275

276276
const run_benchmark_cmd = b.addRunArtifact(benchmark);
277277
if (b.args) |args| {

0 commit comments

Comments
 (0)