Don't use the build runner path as the build runner cache path if present >.>

This commit is contained in:
Alexandros Naskos 2021-05-08 18:48:36 +03:00
parent 3d62dd53a2
commit 14dc9d1b51
No known key found for this signature in database
GPG Key ID: 02BF2E72B0EA32D2

View File

@ -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 {