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:
Frank Denis
2022-12-06 05:05:00 +01:00
committed by GitHub
parent b0b1cc3566
commit 861aa98ac2

View File

@@ -277,6 +277,8 @@ fn addCCArgs(
"-iwithsysroot",
try comp.zig_lib_directory.join(arena, &[_][]const u8{ "libc", "include", triple }),
"-DBULK_MEMORY_THRESHOLD=32",
});
}