mirror of
https://github.com/raysan5/raylib.git
synced 2025-11-05 02:04:25 +00:00
Updated to work with zig master branch (#2620)
Specifically, std.fs.OpenDirOptions struct no longer has the iterable flag, now it's a standalone function call std.fs.openIterableDir
This commit is contained in:
@@ -7,10 +7,7 @@ fn add_module(comptime module: []const u8, b: *std.build.Builder, target: std.zi
|
|||||||
const mode = b.standardReleaseOptions();
|
const mode = b.standardReleaseOptions();
|
||||||
|
|
||||||
const all = b.step(module, "All " ++ module ++ " examples");
|
const all = b.step(module, "All " ++ module ++ " examples");
|
||||||
const dir = try std.fs.cwd().openDir(
|
const dir = try std.fs.cwd().openIterableDir(module, .{});
|
||||||
module,
|
|
||||||
.{ .iterate = true },
|
|
||||||
);
|
|
||||||
var iter = dir.iterate();
|
var iter = dir.iterate();
|
||||||
while (try iter.next()) |entry| {
|
while (try iter.next()) |entry| {
|
||||||
if (entry.kind != .File) continue;
|
if (entry.kind != .File) continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user