can specify a wasm target in build

This commit is contained in:
Mitchell Hashimoto
2022-12-31 08:53:11 -08:00
parent 1093cf5254
commit ce490e21ea
11 changed files with 69 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
const DevMode = @This();
const std = @import("std");
const builtin = @import("builtin");
const imgui = @import("imgui");
const Allocator = std.mem.Allocator;
const assert = std.debug.assert;
@@ -14,7 +15,7 @@ const Config = @import("config.zig").Config;
/// If this is false, the rest of the terminal will be compiled without
/// dev mode support at all.
pub const enabled = true;
pub const enabled = !builtin.target.isWasm();
/// The global DevMode instance that can be used app-wide. Assume all functions
/// are NOT thread-safe unless otherwise noted.