summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2025-12-28 21:39:32 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2025-12-28 21:39:32 +0100
commitb332dc879ec4f341a914fc8f0e488c3bed24f12d (patch)
tree1111cfd5560b0a410d1c4ba8f2e7c0ff9a757487
parent5685c94194d6658767bcad05e05cd3deb201cf88 (diff)
build revised
-rw-r--r--build.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 897840c..f945c26 100644
--- a/build.zig
+++ b/build.zig
@@ -124,7 +124,7 @@ const progress_filename = ".progress.txt";
pub fn build(b: *Build) !void {
const io = b.graph.io;
- // const io = std.Options.debug_io;
+
if (!validate_exercises()) std.process.exit(2);
use_color_escapes = false;
@@ -396,7 +396,6 @@ const ZiglingStep = struct {
const max_output_bytes = 1 * 1024 * 1024;
const result = Child.run(b.allocator, io, .{
- // .allocator = b.allocator,
.argv = &.{exe_path},
.cwd = b.build_root.path.?,
.cwd_dir = b.build_root.handle,
@@ -540,7 +539,7 @@ const ZiglingStep = struct {
.exe => self.exercise.name(),
.@"test" => "test",
};
- const sep = std.fs.path.sep_str;
+ const sep = std.Io.Dir.path.sep_str;
const root_path = exe_dir.?.root_dir.path.?;
const sub_path = exe_dir.?.subPathOrDot();
const exe_path = b.fmt("{s}{s}{s}{s}{s}", .{ root_path, sep, sub_path, sep, exe_name });