diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b118158..c2ef0d1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,4 +28,4 @@ jobs: - name: Build Native run: zig build -DzigCC --summary all - name: Build Wasm - run: zig build -DzigCC --summary all -Dtarget=wasm32-emscripten + run: zig build -DzigCC --summary all -Dtarget=wasm32-emscripten -Doptimize=ReleaseSmall diff --git a/build.zig b/build.zig index bb00ef1..c49b0c5 100644 --- a/build.zig +++ b/build.zig @@ -254,7 +254,7 @@ pub fn build(b: *Build) !void { // fixme: https://github.com/kassane/sokol-d/issues/1 - betterC works on darwin .zig_cc = if (target.result.isDarwin() and !enable_betterC) false else enable_zigcc, .target = target, - .optimize = if (target.result.isWasm()) .ReleaseSmall else optimize, + .optimize = optimize, .kind = if (target.result.isWasm()) .obj else .exe, .emsdk = emsdk, });