From a0e204bdf2560bd15b322f31a125bea6bfe4e6a8 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sun, 3 Oct 2021 12:05:32 -0700 Subject: [PATCH] fix cache for files other than main.zig --- build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 3b7fe6c..2b14604 100644 --- a/build.zig +++ b/build.zig @@ -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,