absolute check

This commit is contained in:
g-w1 2020-12-19 21:24:42 -05:00
parent aaab68bb9d
commit 6cf9ae8038

View File

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