yolo the kraft clean command

This commit is contained in:
Emil Lerch 2024-07-09 13:52:44 -07:00
parent 9107cb1553
commit 8817ba5772
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -74,7 +74,7 @@ pub fn build(b: *std.Build) void {
const run_step = b.step("run", "Run the app"); const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step); run_step.dependOn(&run_cmd.step);
const kraft_clean_cmd = b.addSystemCommand(&[_][]const u8{ var kraft_clean_cmd = b.addSystemCommand(&[_][]const u8{
"kraft", "kraft",
"clean", "clean",
"--plat", "--plat",
@ -82,6 +82,8 @@ pub fn build(b: *std.Build) void {
"--arch", "--arch",
"x86_64", "x86_64",
}); });
kraft_clean_cmd.stdio = .{ .check = .{} }; // kraft clean has some weird exit code behavior
kraft_clean_cmd.has_side_effects = true;
const clean_step = b.step("clean", "Clean the unikraft build"); const clean_step = b.step("clean", "Clean the unikraft build");
clean_step.dependOn(&kraft_clean_cmd.step); clean_step.dependOn(&kraft_clean_cmd.step);