Explorar el Código

Revert "Update build.zig to work with 0.16 (#5487)"

This reverts commit 32e7732061.
pull/5492/head
Ray hace 1 semana
padre
commit
132151cf28
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. +3
    -4
      build.zig

+ 3
- 4
build.zig Ver fichero

@ -522,13 +522,12 @@ fn addExamples(
raylib: *std.Build.Step.Compile,
) !*std.Build.Step {
const all = b.step(module, "All " ++ module ++ " examples");
const io = all.owner.graph.io;
const module_subpath = b.pathJoin(&.{ "examples", module });
var dir = try std.Io.Dir.cwd().openDir(io, b.pathFromRoot(module_subpath), .{ .iterate = true });
defer dir.close(io);
var dir = try std.fs.cwd().openDir(b.pathFromRoot(module_subpath), .{ .iterate = true });
defer dir.close();
var iter = dir.iterate();
while (try iter.next(io)) |entry| {
while (try iter.next()) |entry| {
if (entry.kind != .file) continue;
const extension_idx = std.mem.lastIndexOf(u8, entry.name, ".c") orelse continue;
const name = entry.name[0..extension_idx];

Cargando…
Cancelar
Guardar