build: update for zig 0.13

This commit is contained in:
torque 2024-06-18 18:02:32 -07:00
parent d513aa4eaf
commit fd5b724d52
Signed by: torque
SSH Key Fingerprint: SHA256:nCrXefBNo6EbjNSQhv0nXmEg/VuNq3sMF5b8zETw3Tk
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
const optimize: std.builtin.Mode = b.standardOptimizeOption(.{});
const noclip = b.addModule("noclip", .{
.root_source_file = .{ .path = "source/noclip.zig" },
.root_source_file = b.path("source/noclip.zig"),
});
demo(b, noclip, target, optimize);
@ -13,7 +13,7 @@ pub fn build(b: *std.Build) void {
const test_step = b.step("test", "Run unit tests");
const tests = b.addTest(.{
.name = "tests",
.root_source_file = .{ .path = "source/noclip.zig" },
.root_source_file = b.path("source/noclip.zig"),
.target = target,
.optimize = optimize,
});
@ -31,7 +31,7 @@ fn demo(
const exe = b.addExecutable(.{
.name = "noclip-demo",
.root_source_file = .{ .path = "demo/demo.zig" },
.root_source_file = b.path("demo/demo.zig"),
.target = target,
.optimize = optimize,
});

View File

@ -22,7 +22,7 @@ ____
== Hello
Requires Zig `0.11.x`.
Requires Zig `0.13.x`. May work with `0.12.x`.
=== Features