Skip to content

Commit

Permalink
Fix web app
Browse files Browse the repository at this point in the history
  • Loading branch information
jdmichaud committed Jan 10, 2024
1 parent 03270a3 commit f3f2390
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit f3f2390

Please sign in to comment.