mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00
Remove check for .zig extension on copy src/
Allow things like `@embedFile` to work from copied src/ directory.
This commit is contained in:
parent
19cc2a1714
commit
20167fc75a
@ -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