mirror of
https://github.com/ziglang/zig.git
synced 2026-01-04 12:33:19 +00:00
fix wasm bootstrapping compilation errors
This commit is contained in:
parent
ba77959137
commit
f4428e5804
@ -508,6 +508,7 @@ fn addWasiUpdateStep(b: *std.Build, version: [:0]const u8) !void {
|
|||||||
exe_options.addOption(bool, "enable_tracy_callstack", false);
|
exe_options.addOption(bool, "enable_tracy_callstack", false);
|
||||||
exe_options.addOption(bool, "enable_tracy_allocation", false);
|
exe_options.addOption(bool, "enable_tracy_allocation", false);
|
||||||
exe_options.addOption(bool, "value_tracing", false);
|
exe_options.addOption(bool, "value_tracing", false);
|
||||||
|
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" });
|
||||||
run_opt.addArtifactArg(exe);
|
run_opt.addArtifactArg(exe);
|
||||||
|
|||||||
@ -22,6 +22,7 @@ const is_darwin = builtin.target.isDarwin();
|
|||||||
pub const ChildProcess = struct {
|
pub const ChildProcess = struct {
|
||||||
pub const Id = switch (builtin.os.tag) {
|
pub const Id = switch (builtin.os.tag) {
|
||||||
.windows => windows.HANDLE,
|
.windows => windows.HANDLE,
|
||||||
|
.wasi => void,
|
||||||
else => os.pid_t,
|
else => os.pid_t,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user