Skip to content

Commit

Permalink
fix: use addModule() so this can be imported as a module (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdunnington authored May 25, 2024
1 parent ecd2327 commit bbb120c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});

_ = b.addStaticLibrary(.{
.name = "zig-stable-array",
_ = b.addModule("zig-stable-array", .{
.root_source_file = b.path("stable_array.zig"),
.target = target,
.optimize = optimize,
});

const lib_unit_tests = b.addTest(.{
Expand Down

0 comments on commit bbb120c

Please sign in to comment.