Skip to content

Commit d353fe7

Browse files
author
Stephen Gutekanst
committed
update to Zig 2024.05
Signed-off-by: Stephen Gutekanst <[email protected]>
1 parent 154a15b commit d353fe7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
# Cheers!
1010
# -andrewrk
1111

12-
zig-cache/
12+
.zig-cache/
1313
zig-out/
1414
/release/
1515
/debug/
1616
/build/
1717
/build-*/
18-
/docgen_tmp/
18+
/docgen_tmp/

build.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ pub fn build(b: *std.Build) void {
55
const target = b.standardTargetOptions(.{});
66

77
_ = b.addModule("fastfilter", .{
8-
.root_source_file = .{ .path = "src/main.zig" },
8+
.root_source_file = b.path("src/main.zig"),
99
});
1010

1111
const main_tests = b.addTest(.{
1212
.name = "fastfilter-tests",
13-
.root_source_file = .{ .path = "src/main.zig" },
13+
.root_source_file = b.path("src/main.zig"),
1414
.target = target,
1515
.optimize = optimize,
1616
});

src/benchmark.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub fn main() !void {
133133
i += 1;
134134
if (i == args.len) {
135135
usage();
136-
std.os.exit(1);
136+
std.process.exit(1);
137137
}
138138
num_trials = try std.fmt.parseUnsigned(usize, args[i], 10);
139139
}

0 commit comments

Comments
 (0)