mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
update-zig1: add --enable-sign-ext to wasm-opt
Otherwise it complains because sign extension is now part of baseline.
This commit is contained in:
parent
b1adddadc2
commit
cef9aaa456
@ -520,7 +520,12 @@ fn addWasiUpdateStep(b: *std.Build, version: [:0]const u8) !void {
|
|||||||
exe_options.addOption(bool, "value_tracing", false);
|
exe_options.addOption(bool, "value_tracing", false);
|
||||||
exe_options.addOption(bool, "omit_pkg_fetching_code", true);
|
exe_options.addOption(bool, "omit_pkg_fetching_code", true);
|
||||||
|
|
||||||
const run_opt = b.addSystemCommand(&.{ "wasm-opt", "-Oz", "--enable-bulk-memory" });
|
const run_opt = b.addSystemCommand(&.{
|
||||||
|
"wasm-opt",
|
||||||
|
"-Oz",
|
||||||
|
"--enable-bulk-memory",
|
||||||
|
"--enable-sign-ext",
|
||||||
|
});
|
||||||
run_opt.addArtifactArg(exe);
|
run_opt.addArtifactArg(exe);
|
||||||
run_opt.addArg("-o");
|
run_opt.addArg("-o");
|
||||||
run_opt.addFileSourceArg(.{ .path = "stage1/zig1.wasm" });
|
run_opt.addFileSourceArg(.{ .path = "stage1/zig1.wasm" });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user