Explorar el Código

build.zig: Clean up my mess (#4387)

pull/4397/head
Sage Hane hace 1 año
cometido por GitHub
padre
commit
dc5e6e0ad0
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/build.zig

+ 1
- 1
src/build.zig Ver fichero

@ -68,7 +68,7 @@ fn srcDir(b: *std.Build) []const u8 {
@compileError("Please take a look at this function again");
}
const src_file = std.fs.path.relative(b.allocator, @src().file, ".") catch @panic("OOM");
const src_file = std.fs.path.relative(b.allocator, ".", @src().file) catch @panic("OOM");
return std.fs.path.dirname(src_file) orelse ".";
}

Cargando…
Cancelar
Guardar