From 6cf9ae8038d5b16afa1c6c44b9564afc03265a7a Mon Sep 17 00:00:00 2001 From: g-w1 Date: Sat, 19 Dec 2020 21:24:42 -0500 Subject: [PATCH] absolute check --- build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/build.zig b/build.zig index 271a544..608d1af 100644 --- a/build.zig +++ b/build.zig @@ -34,6 +34,7 @@ pub fn config(step: *std.build.Step) anyerror!void { }); defer allocator.free(full_path); + if (!std.fs.path.isAbsolute(full_path)) continue; // Skip folders named zig const file = std.fs.openFileAbsolute(full_path, .{}) catch continue; const stat = file.stat() catch continue;