zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 024bac7f531e75e2428a20aac1a88a883eaa7e8e (tree)
parent c4f7663c921033a52b1688b88811c92422d58293
Author: GethDW <gethwilliams@googlemail.com>
Date:   Tue, 15 Nov 2022 16:19:39 +0000

std.build: fix typo

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

Diffstat:
Mlib/std/build/RunStep.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/build/RunStep.zig b/lib/std/build/RunStep.zig @@ -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;