Commit 99a0f62
committed
fix(wasm): guard the C --leak-seconds feature behind #ifndef __EMSCRIPTEN__
The WASM build compiles src/printable_binary.c with the CLI/buffer_free path
excluded (#ifndef __EMSCRIPTEN__). My new run_leak_loop calls buffer_free but
wasn't guarded, so emcc failed with 'call to undeclared function buffer_free'.
Wrap the leak helpers + run_leak_loop + the main dispatch in the same guard
(it's a CLI-only test feature). emcc + clang + zig cc all compile; C tests pass;
nix .#printableBinaryWasm builds.1 parent 7e4e07e commit 99a0f62
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1619 | 1619 | | |
1620 | 1620 | | |
1621 | 1621 | | |
| 1622 | + | |
| 1623 | + | |
1622 | 1624 | | |
1623 | 1625 | | |
1624 | 1626 | | |
| |||
1668 | 1670 | | |
1669 | 1671 | | |
1670 | 1672 | | |
| 1673 | + | |
1671 | 1674 | | |
1672 | 1675 | | |
| 1676 | + | |
1673 | 1677 | | |
1674 | 1678 | | |
1675 | 1679 | | |
| |||
1678 | 1682 | | |
1679 | 1683 | | |
1680 | 1684 | | |
| 1685 | + | |
1681 | 1686 | | |
1682 | 1687 | | |
1683 | 1688 | | |
| |||
0 commit comments