From 14dc9d1b51538fb0b51ed244b4e9db9415ee79ed Mon Sep 17 00:00:00 2001 From: Alexandros Naskos Date: Sat, 8 May 2021 18:48:36 +0300 Subject: [PATCH] Don't use the build runner path as the build runner cache path if present >.> --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 5639027..41582b5 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1877,7 +1877,7 @@ pub fn main() anyerror!void { break :blk try std.fs.path.resolve(allocator, &[_][]const u8{ exe_dir_path, "build_runner.zig" }); }; - const build_runner_cache_path = if (config.build_runner_path) |p| + const build_runner_cache_path = if (config.build_runner_cache_path) |p| try allocator.dupe(u8, p) else blk: { const cache_dir_path = (try known_folders.getPath(allocator, .cache)) orelse {