Skip to content

Commit

Permalink
feat: as a module
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanaasagi committed Jun 17, 2023
1 parent 799e155 commit a44372b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ pub fn build(b: *std.Build) void {
// set a preferred release mode, allowing the user to decide how to optimize.
const optimize = b.standardOptimizeOption(.{});

_ = b.addModule("donuts", .{
.source_file = .{ .path = "src/lib.zig" },
.dependencies = &.{},
});

const lib = b.addStaticLibrary(.{
.name = "donuts",
// In this case the main source file is merely a path, however, in more
Expand Down

0 comments on commit a44372b

Please sign in to comment.