Skip to content

Commit e5a5036

Browse files
authored
Address zemscripten regression (#6)
1 parent 62e7b89 commit e5a5036

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ pub fn build(b: *std.Build) !void {
3636
try emcc_flags.put("-mtail-call", {});
3737
try emcc_flags.put("-pthread", {});
3838

39-
var emcc_settings: zemscripten.EmccSettings = .init(b.allocator);
39+
var emcc_settings = zemscripten.emccDefaultSettings(b.allocator, .{
40+
.optimize = optimize,
41+
.emsdk_allocator = .dlmalloc,
42+
});
4043
try emcc_settings.put("PROXY_TO_PTHREAD", "1");
4144
try emcc_settings.put("EXPORTED_FUNCTIONS", "_malloc,_main");
4245

0 commit comments

Comments
 (0)