blob: 1962fe5700e578bad70f895ba85c66e0f4aededa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const std = @import("std");
const Builder = std.build.Builder;
const CrossTarget = std.zig.CrossTarget;
pub fn build(b: *std.build.Builder) void {
const mode = b.standardReleaseOptions();
const target = CrossTarget{ .cpu_arch = .wasm32, .os_tag = .wasi };
const exe = b.addExecutable("hello", "src/hello.zig");
exe.setTarget(target);
exe.setBuildMode(mode);
exe.install();
}
|