authorgravatar for gethwilliams@googlemail.comGethDW <gethwilliams@googlemail.com> 2022-11-15 16:19:39+00:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-01-09 14:06:13-07:00
log6494cec59cde2b5ff39a7c8c87a004692b42a8c9
tree3bdb7dc5a8985332d53fa0abfa74f205d9f0237c
parent35c13c262c99c3ae43dfffae0ea4ec331da25255

std.build: fix typo

This would only fail to compile when building *on* WASI.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/build/RunStep.zig+1-1
...@@ -207,7 +207,7 @@ pub fn runCommand(...@@ -207,7 +207,7 @@ pub fn runCommand(
207 const cwd = if (maybe_cwd) |cwd| builder.pathFromRoot(cwd) else builder.build_root;207 const cwd = if (maybe_cwd) |cwd| builder.pathFromRoot(cwd) else builder.build_root;
208208
209 if (!std.process.can_spawn) {209 if (!std.process.can_spawn) {
210 const cmd = try std.mem.join(builder.addInstallDirectory, " ", argv);210 const cmd = try std.mem.join(builder.allocator, " ", argv);
211 std.debug.print("the following command cannot be executed ({s} does not support spawning a child process):\n{s}", .{ @tagName(builtin.os.tag), cmd });211 std.debug.print("the following command cannot be executed ({s} does not support spawning a child process):\n{s}", .{ @tagName(builtin.os.tag), cmd });
212 builder.allocator.free(cmd);212 builder.allocator.free(cmd);
213 return ExecError.ExecNotSupported;213 return ExecError.ExecNotSupported;