Skip to content

Commit

Permalink
Merge pull request #692 from mrBen/main
Browse files Browse the repository at this point in the history
zig: Fix template build
  • Loading branch information
aduros authored Feb 20, 2024
2 parents befe3b4 + 7cea527 commit 501228e
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 501228e

Please sign in to comment.