mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
fix wasm build
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user