瀏覽代碼

LazyPath.path has been deprecated, using b.path() (#3983)

This works in zig 0.12, LazyPath.path has been removed in zig 0.13

Co-authored-by: CosmicBagel <>
pull/3986/head
CosmicBagel 11 月之前
committed by GitHub
父節點
當前提交
d6b22b17ae
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/build.zig

+ 1
- 1
src/build.zig 查看文件

@ -204,7 +204,7 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
var dir = std.fs.openDirAbsolute(cache_include, std.fs.Dir.OpenDirOptions{ .access_sub_paths = true, .no_follow = true }) catch @panic("No emscripten cache. Generate it!");
dir.close();
raylib.addIncludePath(.{ .path = cache_include });
raylib.addIncludePath(b.path(cache_include));
},
else => {
@panic("Unsupported OS");

Loading…
取消
儲存