| author | |
| committer | |
| log | 861aa98ac2a587851c5ec3338a45e2c6d3c49b43 |
| tree | 1bc0036eecc9cdb97cfb361757d0396714703e7b |
| parent | b0b1cc356694cc3ff6a81c82b6c6f04942c1a4af |
| signature |
When the bulk_memory feature is enabled, wasi-libc will only use
it if the number of bytes is >= BULK_MEMORY_THRESHOLD
Set it to 32 as in the original wasi-libc Makefile.1 files changed, 2 insertions(+), 0 deletions(-)
src/wasi_libc.zig+2| ... | @@ -277,6 +277,8 @@ fn addCCArgs( | ... | @@ -277,6 +277,8 @@ fn addCCArgs( |
| 277 | 277 | ||
| 278 | "-iwithsysroot", | 278 | "-iwithsysroot", |
| 279 | try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", "include", triple }), | 279 | try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", "include", triple }), |
| 280 | |||
| 281 | "-DBULK_MEMORY_THRESHOLD=32", | ||
| 280 | }); | 282 | }); |
| 281 | } | 283 | } |
| 282 | 284 |