Skip to content

Commit

Permalink
Move the definition of the fmt step up in build.zig to make it more…
Browse files Browse the repository at this point in the history
… prominent.
  • Loading branch information
alexrp committed Jun 21, 2024
1 parent 4eae995 commit 3f03ab6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ pub fn build(b: *std.Build) anyerror!void {

const install_step = b.getInstallStep();
const check_step = b.step("check", "Run source code and documentation checks");
const fmt_step = b.step("fmt", "Fix source code formatting");
const test_step = b.step("test", "Build and run tests");
const vscode_step = b.step("vscode", "Build VS Code extension");
const install_vscode_step = b.step("install-vscode", "Install VS Code extension");
Expand Down Expand Up @@ -84,7 +85,7 @@ pub fn build(b: *std.Build) anyerror!void {
.check = true,
}).step);

b.step("fmt", "Fix source code formatting").dependOn(&b.addFmt(.{
fmt_step.dependOn(&b.addFmt(.{
.paths = fmt_paths,
}).step);

Expand Down

0 comments on commit 3f03ab6

Please sign in to comment.