Commit 861aa98ac2

Frank Denis <124872+jedisct1@users.noreply.github.com>
2022-12-06 05:05:00
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 parent b0b1cc3
Changed files (1)
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",
     });
 }