Remove check for .zig extension on copy src/

Allow things like `@embedFile` to work from copied src/ directory.
This commit is contained in:
Bob Farrell 2024-05-13 18:11:02 +01:00
parent 19cc2a1714
commit 20167fc75a

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