fix module?

This commit is contained in:
Jeffrey C. Ollie 2023-10-14 13:56:43 -05:00
parent fc5540a1c4
commit 0b09b9191c
Signed by: jeff
GPG key ID: 6F86035A6D97044E

View file

@ -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" },