Skip to content

Commit

Permalink
zig: Fix template build
Browse files Browse the repository at this point in the history
  • Loading branch information
mrBen committed Jan 17, 2024
1 parent d321e12 commit 7cea527
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/assets/templates/zig/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ pub fn build(b: *std.Build) !void {
const exe = b.addExecutable(.{
.name = "cart",
.root_source_file = .{ .path = "src/main.zig" },
.target = .{
.target = b.resolveTargetQuery(.{
.cpu_arch = .wasm32,
.os_tag = .freestanding,
},
}),
.optimize = b.standardOptimizeOption(.{}),
});

exe.entry = .disabled;
exe.export_symbol_names = &[_][]const u8{ "start", "update" };
exe.root_module.export_symbol_names = &[_][]const u8{ "start", "update" };
exe.import_memory = true;
exe.initial_memory = 65536;
exe.max_memory = 65536;
Expand Down

0 comments on commit 7cea527

Please sign in to comment.