From 6494cec59cde2b5ff39a7c8c87a004692b42a8c9 Mon Sep 17 00:00:00 2001 From: GethDW Date: Tue, 15 Nov 2022 16:19:39 +0000 Subject: [PATCH] std.build: fix typo This would only fail to compile when building *on* WASI. --- lib/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 index 168f5d9d58..3422b83a6d 100644 --- 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;