mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
build.zig: Very minor fixes (#4381)
This commit is contained in:
@@ -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" })));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user