Skip to content

Commit

Permalink
CI: change wasm build
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 22, 2024
1 parent 329f31b commit 2b9e6ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 2b9e6ed

Please sign in to comment.