authorgravatar for 124872+jedisct1@users.noreply.github.comFrank Denis <124872+jedisct1@users.noreply.github.com> 2022-12-06 05:05:00+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2022-12-06 04:05:00+00:00
log861aa98ac2a587851c5ec3338a45e2c6d3c49b43
tree1bc0036eecc9cdb97cfb361757d0396714703e7b
parentb0b1cc356694cc3ff6a81c82b6c6f04942c1a4af
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

wasi-libc: define BULK_MEMORY_THRESHOLD for the bulk_memory feature (#13787)

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(
277277
278278 "-iwithsysroot",
279279 try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", "include", triple }),
280
281 "-DBULK_MEMORY_THRESHOLD=32",
280282 });
281283}
282284