summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-03-13 18:18:50 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-03-13 18:18:50 +0100
commite6d93d731a6d3b3366e6cb80df3b1a4cf22a81f3 (patch)
treeb1d2c108a0fcb0c88c4f388d44aa9bb769bb12bc /build.zig
parent1de4e140963df3a038330ab9efb74cc747ae5219 (diff)
parent16a794fbeef0c1d98069dc825e55af38945b5165 (diff)
Merge pull request 'Add exercises for packed structs/unions' (#374) from justusk/ziglings:packed into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/374
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig10
1 files changed, 9 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 1099135..f4b4405 100644
--- a/build.zig
+++ b/build.zig
@@ -265,7 +265,7 @@ pub fn build(b: *Build) !void {
const progress_file_size = try progress_file.length(io);
- var gpa = std.heap.GeneralPurposeAllocator(.{}){};
+ var gpa = std.heap.DebugAllocator(.{}){};
defer _ = gpa.deinit();
const allocator = gpa.allocator();
const contents = try allocator.alloc(u8, progress_file_size);
@@ -1309,6 +1309,14 @@ const exercises = [_]Exercise{
\\= 0110
},
.{
+ .main_file = "111_packed.zig",
+ .output = "",
+ },
+ .{
+ .main_file = "112_packed2.zig",
+ .output = "",
+ },
+ .{
.main_file = "999_the_end.zig",
.output =
\\