Skip to content

Commit

Permalink
remove duplicate emcc flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kassane committed Jan 7, 2024
1 parent aa3d1f0 commit a5ad8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);

Expand Down

0 comments on commit a5ad8f4

Please sign in to comment.