Skip to content

Commit

Permalink
build.zig: Very minor fixes (raysan5#4381)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagehane authored and psxdev committed Nov 18, 2024
1 parent da4ea23 commit b838644
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down Expand Up @@ -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" })));
}

Expand Down

0 comments on commit b838644

Please sign in to comment.