Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 3f18e56

Browse files
committed
Update for changes to zig build system
1 parent 54c4969 commit 3f18e56

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

build.zig

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@ pub fn build(b: *std.build.Builder) void {
77
// for restricting supported target set are available.
88
const target = b.standardTargetOptions(.{});
99

10-
// Standard release options allow the person running `zig build` to select
10+
// Standard optimize options allow the person running `zig build` to select
1111
// between Debug, ReleaseSafe, ReleaseFast, and ReleaseSmall.
12-
const mode = b.standardReleaseOptions();
12+
const optimize = b.standardOptimizeOption(.{});
1313

14-
const exe = b.addExecutable("zigish", "src/main.zig");
15-
exe.setTarget(target);
16-
exe.setBuildMode(mode);
14+
const exe = b.addExecutable(.{
15+
.name = "zigish",
16+
.root_source_file = .{ .path = "src/main.zig" },
17+
.target = target,
18+
.optimize = optimize,
19+
});
1720
exe.install();
1821

1922
const run_cmd = exe.run();

0 commit comments

Comments
 (0)