We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62e7b89 commit e5a5036Copy full SHA for e5a5036
build.zig
@@ -36,7 +36,10 @@ pub fn build(b: *std.Build) !void {
36
try emcc_flags.put("-mtail-call", {});
37
try emcc_flags.put("-pthread", {});
38
39
- var emcc_settings: zemscripten.EmccSettings = .init(b.allocator);
+ var emcc_settings = zemscripten.emccDefaultSettings(b.allocator, .{
40
+ .optimize = optimize,
41
+ .emsdk_allocator = .dlmalloc,
42
+ });
43
try emcc_settings.put("PROXY_TO_PTHREAD", "1");
44
try emcc_settings.put("EXPORTED_FUNCTIONS", "_malloc,_main");
45
0 commit comments