further escape transitive dependency hell

Helps hexops/mach#902

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-09-17 17:12:09 -07:00
parent 6999d718a5
commit dc63ee5460
2 changed files with 7 additions and 11 deletions

View file

@ -117,7 +117,11 @@ pub const App = struct {
});
try deps.append(.{ .name = "sysaudio", .module = sysaudio.module(mach_sysaudio.builder, options.optimize, options.target) });
const app = try core.App.init(b, .{
const mach_core = b.dependency("mach_core", .{
.target = options.target,
.optimize = options.optimize,
});
const app = try core.App.init(b, mach_core.builder, .{
.name = options.name,
.src = options.src,
.target = options.target,