Commit 024bac7f53

GethDW <gethwilliams@googlemail.com>
2022-11-15 17:19:39
std.build: fix typo
This would only fail to compile when building *on* WASI.
1 parent c4f7663
Changed files (1)
lib
std
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;