fix module?
This commit is contained in:
parent
fc5540a1c4
commit
0b09b9191c
1 changed files with 12 additions and 4 deletions
16
build.zig
16
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" },
|
||||
|
|
Loading…
Reference in a new issue