Skip to content

Commit

Permalink
build: update benchmarks for latest Zig
Browse files Browse the repository at this point in the history
  • Loading branch information
ianprime0509 committed Aug 23, 2023
1 parent 8f68598 commit dfdc044
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bench/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ pub fn build(b: *Build) !void {

const bench_yxml = addBench(b, "yxml");
bench_yxml.linkLibC();
bench_yxml.addCSourceFile("lib/yxml/yxml.c", &.{});
bench_yxml.addIncludePath("lib/yxml");
bench_yxml.addCSourceFile(.{ .file = .{ .path = "lib/yxml/yxml.c" }, .flags = &.{} });
bench_yxml.addIncludePath(.{ .path = "lib/yxml" });

const bench_mxml = addBench(b, "mxml");
bench_mxml.linkLibC();
Expand All @@ -45,8 +45,8 @@ pub fn build(b: *Build) !void {
"lib/mxml/mxml-set.c",
"lib/mxml/mxml-string.c",
}, &.{});
bench_mxml.addIncludePath("lib/mxml");
bench_mxml.addIncludePath("lib/mxml-config");
bench_mxml.addIncludePath(.{ .path = "lib/mxml" });
bench_mxml.addIncludePath(.{ .path = "lib/mxml-config" });
}

fn addBench(b: *Build, name: []const u8) *Step.Compile {
Expand Down
2 changes: 1 addition & 1 deletion bench/lib/zig-libxml2

0 comments on commit dfdc044

Please sign in to comment.