std.build: fix typo

This would only fail to compile when building *on* WASI.
This commit is contained in:
GethDW 2022-11-15 16:19:39 +00:00 committed by Andrew Kelley
parent 35c13c262c
commit 6494cec59c

View file

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