Skip to content

Commit 7fc0644

Browse files
linusgjoachimschmidt557
authored andcommitted
Update var to const in build.zig where applicable
This no longer builds with the latest version of Zig. See: ziglang/zig#18017
1 parent 2d4055f commit 7fc0644

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ pub fn build(b: *Build) void {
99
.source_file = .{ .path = "src/main.zig" },
1010
});
1111

12-
var generate = b.addExecutable(.{
12+
const generate = b.addExecutable(.{
1313
.name = "generate",
1414
.root_source_file = FileSource.relative("tools/generate.zig"),
1515
.target = target,
1616
.optimize = optimize,
1717
});
1818

19-
var generate_run = b.addRunArtifact(generate);
19+
const generate_run = b.addRunArtifact(generate);
2020

2121
const generate_step = b.step("generate", "Generate tables");
2222
generate_step.dependOn(&generate_run.step);
2323

24-
var main_tests = b.addTest(.{
24+
const main_tests = b.addTest(.{
2525
.root_source_file = FileSource.relative("src/test.zig"),
2626
.target = target,
2727
.optimize = optimize,

0 commit comments

Comments
 (0)