From 35c5d6b976edb16c484e278aabc3d750e2880a77 Mon Sep 17 00:00:00 2001 From: Chris Boesch Date: Sat, 11 Feb 2023 11:43:09 +0100 Subject: added 092_interfaces to build --- build.zig | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 4312fb7..03e83e9 100644 --- a/build.zig +++ b/build.zig @@ -460,6 +460,10 @@ const exercises = [_]Exercise{ // .output = "ABCDEF", // .@"async" = true, // }, + .{ + .main_file = "092_interfaces.zig", + .output = "Daily insect report:\nAnt is alive.\nBee visited 17 flowers.\nGrasshopper hopped 32 m.", + }, .{ .main_file = "999_the_end.zig", .output = "\nThis is the end for now!\nWe hope you had fun and were able to learn a lot, so visit us again when the next exercises are available.", @@ -564,10 +568,7 @@ pub fn build(b: *Builder) void { const file_path = std.fs.path.join(b.allocator, &[_][]const u8{ if (use_healed) "patches/healed" else "exercises", ex.main_file, }) catch unreachable; - const build_step = b.addExecutable(.{ - .name = base_name, - .root_source_file = .{ .path = file_path } - }); + const build_step = b.addExecutable(.{ .name = base_name, .root_source_file = .{ .path = file_path } }); build_step.install(); -- cgit v1.2.3