瀏覽代碼

build.zig: Very minor fixes (#4381)

pull/4382/head
Sage Hane 7 月之前
committed by GitHub
父節點
當前提交
c18677e70f
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      src/build.zig

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

@ -65,7 +65,7 @@ fn srcDir(b: *std.Build) []const u8 {
comptime {
const order = std.SemanticVersion.order;
const parse = std.SemanticVersion.parse;
if (order(min_ver, parse("0.14.0") catch unreachable) != .lt)
if (order(parse(min_ver) catch unreachable, parse("0.14.0") catch unreachable) != .lt)
@compileError("Please take a look at this function again");
}
@ -136,7 +136,6 @@ fn compileRaylib(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.
// No GLFW required on PLATFORM_DRM
if (options.platform != .drm) {
_ = std.debug.print("\n\n{s}\n\n", .{@src().file});
raylib.addIncludePath(b.path(b.pathJoin(&.{ srcDir(b), "external/glfw/include" })));
}

Loading…
取消
儲存