fix cache for files other than main.zig

This commit is contained in:
Emil Lerch 2021-10-03 12:05:32 -07:00
parent 48ceb136de
commit a0e204bdf2
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -110,7 +110,7 @@ pub fn build(b: *std.build.Builder) !void {
}
const cmd = try std.fmt.allocPrint(b.allocator, ifstatement, .{
function_name_file,
exe.root_src.?.path,
std.fs.path.dirname(exe.root_src.?.path),
function_name_file,
function_name,
not_found_fmt,