From 0b09b9191c4cfffa8801438af078592b4aaa8ecd Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sat, 14 Oct 2023 13:56:43 -0500 Subject: [PATCH] fix module? --- build.zig | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/build.zig b/build.zig index 09bfa33..27e27f7 100644 --- a/build.zig +++ b/build.zig @@ -4,16 +4,24 @@ pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); - var module = b.createModule( + // var module = b.createModule( + // .{ + // .source_file = .{ + // .path = "src/main.zig", + // }, + // }, + // ); + + // try b.modules.put(b.dupe("datetime"), module); + + b.addModule( + "datetime", .{ .source_file = .{ .path = "src/main.zig", }, }, ); - - try b.modules.put(b.dupe("datetime"), module); - const lib = b.addStaticLibrary(.{ .name = "datetime", .root_source_file = .{ .path = "src/main.zig" },