summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorXander Bil <xander@biltopia.org>2024-12-04 23:58:20 +0100
committerXander Bil <xander@biltopia.org>2024-12-04 23:58:20 +0100
commit7b47337e40672c4c5f12a2773d3888c17237f36a (patch)
tree734e104dacaeb4708912449aac28a074f225acc5 /build.zig
parent1c2490f5f2c9419ddb5035fc3a8967beef691e6c (diff)
downloadaoc2024-7b47337e40672c4c5f12a2773d3888c17237f36a.tar.xz
aoc2024-7b47337e40672c4c5f12a2773d3888c17237f36a.zip
solutions day3 and 4
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 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);
}