diff --git a/README.md b/README.md index 26b5f8b..578b3c4 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ To load one or two disks, pass the `dsk` file path in the command line: In order to generate a wasm file do: ```bash -zig build wasm -Drelease-safe=true +zig build wasm -Doptimize=ReleaseSmall ``` Then serve the web folder: diff --git a/build.zig b/build.zig index a09bd72..0fcad06 100644 --- a/build.zig +++ b/build.zig @@ -1,10 +1,11 @@ const std = @import("std"); pub fn setup_wasm(b: *std.Build, optimize: std.builtin.Mode) void { + _ = optimize; const lib = b.addExecutable(.{ .name = "zpz6128", .version = .{ .major = 1, .minor = 0, .patch = 0 }, - .optimize = optimize, + .optimize = .ReleaseSmall, // We force ReleaseSmall for now because of too many locals .target = b.resolveTargetQuery(.{ .cpu_arch = .wasm32, .os_tag = .freestanding,