Merge pull request #206 from g-w1/absolute_check

absolute check
This commit is contained in:
Alexandros Naskos 2020-12-24 14:06:19 +02:00 committed by GitHub
commit 8a43e3e7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;