Add Format set to build

This commit is contained in:
ED 2020-01-15 16:30:30 +00:00
parent c581db8e16
commit 9332fc67b5
No known key found for this signature in database
GPG key ID: C4BD761F0D7BBECC

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" });