Merge pull request #68 from jetzig-framework/copy-all-src-files

Remove check for .zig extension on copy src/
This commit is contained in:
bobf 2024-05-13 18:21:27 +01:00 committed by GitHub
commit 7c35ae349e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,8 +173,6 @@ pub fn jetzigInit(b: *std.Build, exe: *std.Build.Step.Compile, options: JetzigIn
while (try walker.next()) |entry| {
if (entry.kind == .file) {
if (!std.mem.eql(u8, ".zig", std.fs.path.extension(entry.path))) continue;
const stat = try src_dir.statFile(entry.path);
const src_data = try src_dir.readFileAlloc(b.allocator, entry.path, @intCast(stat.size));
defer b.allocator.free(src_data);