Skip to content

Commit

Permalink
build: fix bench build for Zig 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ianprime0509 committed Sep 15, 2024
1 parent 0747fa1 commit e1aebe7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ callgrind.out.*
core*
fuzz/outputs
test/xmlconf
.zig-cache
zig-cache
zig-out
2 changes: 1 addition & 1 deletion bench/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit e1aebe7

Please sign in to comment.