diff --git a/build.zig b/build.zig index 54a1c2d..184a21e 100644 --- a/build.zig +++ b/build.zig @@ -1,10 +1,15 @@ const std = @import("std"); -pub fn build(b: *std.Build) void { +pub fn build(b: *std.Build) !void { const target = b.standardTargetOptions(.{}); - const optimize = b.standardOptimizeOption(.{}); + var mod = b.createModule(.{ + .source_file = .{ .path = "src/main.zig" }, + }); + + try b.modules.put(b.dupe("toki"), mod); + const lib = b.addStaticLibrary(.{ .name = "toki", .root_source_file = .{ .path = "src/main.zig" },