From 20167fc75a96604cf0d8b70724cf583cfdc4d675 Mon Sep 17 00:00:00 2001 From: Bob Farrell Date: Mon, 13 May 2024 18:11:02 +0100 Subject: [PATCH] Remove check for .zig extension on copy src/ Allow things like `@embedFile` to work from copied src/ directory. --- build.zig | 2 -- 1 file changed, 2 deletions(-) diff --git a/build.zig b/build.zig index 05a642e..ffeef1a 100644 --- a/build.zig +++ b/build.zig @@ -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);