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.
This commit is contained in:
@@ -277,6 +277,8 @@ fn addCCArgs(
|
||||
|
||||
"-iwithsysroot",
|
||||
try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", "include", triple }),
|
||||
|
||||
"-DBULK_MEMORY_THRESHOLD=32",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user