dont foget windows

This commit is contained in:
Mike 2020-12-21 22:14:32 -08:00
parent b7c71e51e7
commit e3291e3012

View File

@ -29,7 +29,7 @@ pub fn build(b: *Builder) void {
// first element in the list is added as "run" so "zig build run" works
if (i == 0) {
exe.setOutputDir(std.fs.path.joinPosix(b.allocator, &[_][]const u8{ b.cache_root, "bin" }) catch unreachable);
exe.setOutputDir(std.fs.path.join(b.allocator, &[_][]const u8{ b.cache_root, "bin" }) catch unreachable);
const run_exe_step = b.step("run", b.fmt("run {}.zig", .{name}));
run_exe_step.dependOn(&run_cmd.step);
}