From 861aa98ac2a587851c5ec3338a45e2c6d3c49b43 Mon Sep 17 00:00:00 2001 From: Frank Denis <124872+jedisct1@users.noreply.github.com> Date: Tue, 6 Dec 2022 05:05:00 +0100 Subject: [PATCH] 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. --- src/wasi_libc.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wasi_libc.zig b/src/wasi_libc.zig index 3a4a3aca07..7a52ea030e 100644 --- a/src/wasi_libc.zig +++ b/src/wasi_libc.zig @@ -277,6 +277,8 @@ fn addCCArgs( "-iwithsysroot", try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", "include", triple }), + + "-DBULK_MEMORY_THRESHOLD=32", }); }