diff --git a/build.zig b/build.zig index 64ad6a4..f1f0675 100644 --- a/build.zig +++ b/build.zig @@ -354,7 +354,6 @@ fn buildWasm(b: *Build, lib: *CompileStep, libsokol: *CompileStep, config: LibSo try emcc_cmds.append("-sMALLOC='emmalloc'"); try emcc_cmds.append("-sASSERTIONS=0"); try emcc_cmds.append("-sERROR_ON_UNDEFINED_SYMBOLS=0"); - try emcc_cmds.append("-sMALLOC='emmalloc'"); // TODO: fix undefined references switch (config.backend) { @@ -369,6 +368,7 @@ fn buildWasm(b: *Build, lib: *CompileStep, libsokol: *CompileStep, config: LibSo try emcc_cmds.append("-sEXPORTED_FUNCTIONS=['_malloc','_free','_main']"); const emcc = b.addSystemCommand(emcc_cmds.items); + emcc.setName("emcc"); // hide emcc path emcc.step.dependOn(&install_sokol.step); emcc.step.dependOn(&install.step);