Merge pull request #124 from SamTebbs33/feature/add-fmt-setp-to-build

Add Format step to build
This commit is contained in:
Edward Dean 2020-01-15 19:43:29 +00:00 committed by GitHub
commit 96da426a3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,13 @@ pub fn build(b: *Builder) !void {
else => unreachable, else => unreachable,
}; };
const fmt_step = b.addFmt(&[_][]const u8{
"build.zig",
"src",
"test",
});
b.default_step.dependOn(&fmt_step.step);
const main_src = "src/kernel/kmain.zig"; const main_src = "src/kernel/kmain.zig";
const constants_path = try fs.path.join(b.allocator, &[_][]const u8{ "src/kernel/arch", target_str, "constants.zig" }); const constants_path = try fs.path.join(b.allocator, &[_][]const u8{ "src/kernel/arch", target_str, "constants.zig" });