authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-04-16 10:03:42+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-04-17 05:12:42-04:00
loga4b1242f0aeaf785f6b05cb843bb2efc0e6e702d
tree5a06caeaa919992e9575d02260a131e091599a6d
parent48723113642f553db5dda1020eeb32a0e9df9cc0

build: Create the output directory if it doesn't exist

Fixes #5054

1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/build.zig+3
...@@ -2155,6 +2155,9 @@ pub const LibExeObjStep = struct {...@@ -2155,6 +2155,9 @@ pub const LibExeObjStep = struct {
2155 var src_dir = try std.fs.cwd().openDir(build_output_dir, .{ .iterate = true });2155 var src_dir = try std.fs.cwd().openDir(build_output_dir, .{ .iterate = true });
2156 defer src_dir.close();2156 defer src_dir.close();
21572157
2158 // Create the output directory if it doesn't exist.
2159 try std.fs.cwd().makePath(output_dir);
2160
2158 var dest_dir = try std.fs.cwd().openDir(output_dir, .{});2161 var dest_dir = try std.fs.cwd().openDir(output_dir, .{});
2159 defer dest_dir.close();2162 defer dest_dir.close();
21602163