Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save meheleventyone/26f36c7b88d4ea6b35926024b20933e9 to your computer and use it in GitHub Desktop.
Save meheleventyone/26f36c7b88d4ea6b35926024b20933e9 to your computer and use it in GitHub Desktop.
0.4.0 wasm build
const Builder = @import("std").build.Builder;
pub fn build(b: *Builder) void {
const mode = b.standardReleaseOptions();
const exe = b.addExecutable("main", "src/main.zig");
exe.setBuildMode(mode);
exe.setTarget(.wasm32, .freestanding, .none);
b.default_step.dependOn(&exe.step);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment