From 0a2fdfbdb934faae7fcf63e9b3ab760c00f47918 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 10 Nov 2022 13:42:34 -0700 Subject: [PATCH] build.zig: add bulk_memory to -Dwasi-bootstrap In theory this will enhance the performance of interpreting a WASI build of Zig. --- build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index 8560e5e2d2..675640ee1a 100644 --- a/build.zig +++ b/build.zig @@ -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;