Skip to content

Commit fe491be

Browse files
committed
- Fixup build script deprecations
1 parent 5128dc8 commit fe491be

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

build.zig

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ pub fn build(b: *std.Build) void {
3434

3535
const tests = b.addTest(.{
3636
.name = "zmath-tests",
37-
.root_source_file = b.path("src/root.zig"),
38-
.target = target,
39-
.optimize = options.optimize,
37+
.root_module = b.createModule(.{
38+
.root_source_file = b.path("src/root.zig"),
39+
.target = target,
40+
.optimize = options.optimize,
41+
}),
4042
});
4143
b.installArtifact(tests);
4244

@@ -48,9 +50,11 @@ pub fn build(b: *std.Build) void {
4850

4951
const benchmarks = b.addExecutable(.{
5052
.name = "zmath-benchmarks",
51-
.root_source_file = b.path("src/benchmark.zig"),
52-
.target = target,
53-
.optimize = options.optimize,
53+
.root_module = b.createModule(.{
54+
.root_source_file = b.path("src/benchmark.zig"),
55+
.target = target,
56+
.optimize = options.optimize,
57+
}),
5458
});
5559
b.installArtifact(benchmarks);
5660

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .zmath,
33
.fingerprint = 0xfd23d422bd223cc2,
44
.version = "0.11.0-dev",
5-
.minimum_zig_version = "0.14.0",
5+
.minimum_zig_version = "0.14.1",
66
.paths = .{
77
"build.zig",
88
"build.zig.zon",

0 commit comments

Comments
 (0)