Skip to content

Commit e69522d

Browse files
template/c: refactor zig build
1 parent 89c87b0 commit e69522d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/c/build.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub fn build(b: *std.Build) void {
44
const target = b.standardTargetOptions(.{});
55
const optimize = b.standardOptimizeOption(.{});
66

7-
const run = b.step("run", "Run the app");
7+
const run_step = b.step("run", "Run the app");
88
{
99
const exe = b.addExecutable(.{
1010
.name = "cproject",
@@ -15,6 +15,6 @@ pub fn build(b: *std.Build) void {
1515
});
1616
exe.addCSourceFile(.{ .file = b.path("main.c") });
1717
exe.linkLibC();
18-
run.dependOn(&b.addRunArtifact(exe).step);
18+
run_step.dependOn(&b.addRunArtifact(exe).step);
1919
}
2020
}

0 commit comments

Comments
 (0)