mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.build: fix typo
This would only fail to compile when building *on* WASI.
This commit is contained in:
parent
35c13c262c
commit
6494cec59c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue