From e1aebe72154bc82e44bffe66e5a9345a7a6b166a Mon Sep 17 00:00:00 2001 From: Ian Johnson Date: Sat, 14 Sep 2024 20:29:14 -0400 Subject: [PATCH] build: fix bench build for Zig 0.13.0 --- .gitignore | 1 + bench/build.zig | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index bd40d87..f33e3bd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ callgrind.out.* core* fuzz/outputs test/xmlconf +.zig-cache zig-cache zig-out diff --git a/bench/build.zig b/bench/build.zig index 003f38f..2be01c6 100644 --- a/bench/build.zig +++ b/bench/build.zig @@ -66,7 +66,7 @@ pub fn build(b: *Build) !void { fn addBench(b: *Build, name: []const u8) *Step.Compile { const exe = b.addExecutable(.{ .name = name, - .root_source_file = .{ .path = b.fmt("src/{s}.zig", .{name}) }, + .root_source_file = b.path(b.fmt("src/{s}.zig", .{name})), .target = b.host, .optimize = .ReleaseFast, });