build: update for zig 0.13
This commit is contained in:
@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
|
|||||||
const optimize: std.builtin.Mode = b.standardOptimizeOption(.{});
|
const optimize: std.builtin.Mode = b.standardOptimizeOption(.{});
|
||||||
|
|
||||||
const noclip = b.addModule("noclip", .{
|
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);
|
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 test_step = b.step("test", "Run unit tests");
|
||||||
const tests = b.addTest(.{
|
const tests = b.addTest(.{
|
||||||
.name = "tests",
|
.name = "tests",
|
||||||
.root_source_file = .{ .path = "source/noclip.zig" },
|
.root_source_file = b.path("source/noclip.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
@@ -31,7 +31,7 @@ fn demo(
|
|||||||
|
|
||||||
const exe = b.addExecutable(.{
|
const exe = b.addExecutable(.{
|
||||||
.name = "noclip-demo",
|
.name = "noclip-demo",
|
||||||
.root_source_file = .{ .path = "demo/demo.zig" },
|
.root_source_file = b.path("demo/demo.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
.optimize = optimize,
|
.optimize = optimize,
|
||||||
});
|
});
|
||||||
|
@@ -22,7 +22,7 @@ ____
|
|||||||
|
|
||||||
== Hello
|
== Hello
|
||||||
|
|
||||||
Requires Zig `0.11.x`.
|
Requires Zig `0.13.x`. May work with `0.12.x`.
|
||||||
|
|
||||||
=== Features
|
=== Features
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user