From 8817ba577202b4942e30b46628927be5a272609f Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Tue, 9 Jul 2024 13:52:44 -0700 Subject: [PATCH] yolo the kraft clean command --- build.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 513e6ab..682e87a 100644 --- a/build.zig +++ b/build.zig @@ -74,7 +74,7 @@ pub fn build(b: *std.Build) void { const run_step = b.step("run", "Run the app"); run_step.dependOn(&run_cmd.step); - const kraft_clean_cmd = b.addSystemCommand(&[_][]const u8{ + var kraft_clean_cmd = b.addSystemCommand(&[_][]const u8{ "kraft", "clean", "--plat", @@ -82,6 +82,8 @@ pub fn build(b: *std.Build) void { "--arch", "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"); clean_step.dependOn(&kraft_clean_cmd.step);