mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00
Merge pull request #68 from jetzig-framework/copy-all-src-files
Remove check for .zig extension on copy src/
This commit is contained in:
commit
7c35ae349e
@ -173,8 +173,6 @@ pub fn jetzigInit(b: *std.Build, exe: *std.Build.Step.Compile, options: JetzigIn
|
|||||||
|
|
||||||
while (try walker.next()) |entry| {
|
while (try walker.next()) |entry| {
|
||||||
if (entry.kind == .file) {
|
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 stat = try src_dir.statFile(entry.path);
|
||||||
const src_data = try src_dir.readFileAlloc(b.allocator, entry.path, @intCast(stat.size));
|
const src_data = try src_dir.readFileAlloc(b.allocator, entry.path, @intCast(stat.size));
|
||||||
defer b.allocator.free(src_data);
|
defer b.allocator.free(src_data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user