From 453d9e0fa3cf0b1898d29782cec8a977313c4390 Mon Sep 17 00:00:00 2001 From: XXIV <13811862+thechampagne@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:41:22 +0300 Subject: [PATCH] create module --- build.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.zig b/build.zig index c1efbf5..cbd84b4 100644 --- a/build.zig +++ b/build.zig @@ -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("midi", .{ + .source_file = .{ .path = "src/main.zig" }, + .dependencies = &[_]std.Build.ModuleDependency{}, + }); + const exe = b.addExecutable(.{ .name = "midi", // In this case the main source file is merely a path, however, in more