build.zig: add bulk_memory to -Dwasi-bootstrap

In theory this will enhance the performance of interpreting a WASI build
of Zig.
This commit is contained in:
Andrew Kelley 2022-11-10 13:42:34 -07:00
parent 3ba916584d
commit 0a2fdfbdb9

View File

@ -22,6 +22,7 @@ pub fn build(b: *Builder) !void {
if (wasi_bootstrap) {
default_target.cpu_arch = .wasm32;
default_target.os_tag = .wasi;
default_target.cpu_features_add.addFeature(@enumToInt(std.Target.wasm.Feature.bulk_memory));
break :t default_target;
} else if (only_c) {
default_target.ofmt = .c;