From 7b47337e40672c4c5f12a2773d3888c17237f36a Mon Sep 17 00:00:00 2001 From: Xander Bil Date: Wed, 4 Dec 2024 23:58:20 +0100 Subject: solutions day3 and 4 --- build.zig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 3234a16..f338a2c 100644 --- a/build.zig +++ b/build.zig @@ -2,6 +2,14 @@ const std = @import("std"); const print = std.debug.print; pub fn build(b: *std.Build) void { - const exe = b.addExecutable(.{ .name = "day01", .root_source_file = b.path("main.zig"), .target = b.standardTargetOptions(.{}), .optimize = .ReleaseFast }); + const target = b.standardTargetOptions(.{}); + const optimize = b.standardOptimizeOption(.{}); + + var exe = b.addExecutable(.{ .name = "aoc2024", .root_source_file = b.path("main.zig"), .target = target, .optimize = optimize }); + + const mecha = b.dependency("mecha", .{}); + + exe.root_module.addImport("mecha", mecha.module("mecha")); + b.installArtifact(exe); } -- cgit v1.2.3