Skip to content

Commit b3919b7

Browse files
Add module (#3)
1 parent de1ae6f commit b3919b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ const std = @import("std");
33
pub fn build(b: *std.Build) void {
44
const target = b.standardTargetOptions(.{});
55
const optimize = b.standardOptimizeOption(.{});
6+
const zigosc = b.addModule("zigosc", .{
7+
.root_source_file = b.path("src/root.zig"),
8+
});
69

710
const lib = b.addStaticLibrary(.{
811
.name = "zigosc",
@@ -12,6 +15,7 @@ pub fn build(b: *std.Build) void {
1215
});
1316

1417
b.installArtifact(lib);
18+
zigosc.linkLibrary(lib);
1519

1620
const lib_unit_tests = b.addTest(.{
1721
.root_source_file = b.path("src/root.zig"),

0 commit comments

Comments
 (0)