mirror of
https://github.com/ziglang/zig.git
synced 2025-02-13 08:00:20 +00:00
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:
parent
3ba916584d
commit
0a2fdfbdb9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user