From bb48ebc9cb8902215f70368ed9f2a6223d911edd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 4 Mar 2023 14:26:56 -0800 Subject: [PATCH] fix wasm build --- src/font/main.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/font/main.zig b/src/font/main.zig index 4fa1e1537..f1e6b298d 100644 --- a/src/font/main.zig +++ b/src/font/main.zig @@ -32,7 +32,10 @@ pub usingnamespace if (builtin.target.isWasm()) struct { pub const options: struct { backend: Backend, } = .{ - .backend = build_config.font_backend, + // TODO: we need to modify the build config for wasm builds. the issue + // is we're sharing the build config options between all exes in build.zig. + // We need to construt it per target. + .backend = if (builtin.target.isWasm()) .web_canvas else build_config.font_backend, }; pub const Backend = enum {