From c77619045f82066cb39b4fe254bd4d32b25ff40d Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 24 Sep 2023 18:40:22 -0700 Subject: [PATCH] build: fix transitive resolution of mach_core Signed-off-by: Stephen Gutekanst --- build.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index 09ad3d2e..83b70e47 100644 --- a/build.zig +++ b/build.zig @@ -120,11 +120,11 @@ pub const App = struct { }); try deps.append(.{ .name = "mach-sysaudio", .module = mach_sysaudio_dep.module("mach-sysaudio") }); - const mach_core = mach_builder.dependency("mach_core", .{ + const mach_core_dep = mach_builder.dependency("mach_core", .{ .target = options.target, .optimize = options.optimize, }); - const app = try core.App.init(app_builder, mach_core.builder, .{ + const app = try core.App.init(app_builder, mach_core_dep.builder, .{ .name = options.name, .src = options.src, .target = options.target, @@ -133,6 +133,7 @@ pub const App = struct { .deps = deps.items, .res_dirs = options.res_dirs, .watch_paths = options.watch_paths, + .mach_core_mod = mach_core_dep.module("mach-core"), }); return .{ .core = app,