build: fix wasm32-freestanding build

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-07-19 07:19:58 -07:00
parent c004ea1b06
commit 3a81f35b8b

View file

@ -163,12 +163,15 @@ pub const App = struct {
sysaudio.link(app.b, app.step, options.sysaudio);
if (app.use_freetype) |_| freetype.link(app.b, app.step, options.freetype);
// TODO: basisu support in wasm
if (app.platform != .web) {
const mach_basisu = app.b.dependency("mach_basisu", .{
.target = app.step.target,
.optimize = app.step.optimize,
});
app.step.linkLibrary(mach_basisu.artifact("mach-basisu"));
}
}
pub fn install(app: *const App) void {
app.core.install();