update README for Zig 0.13

This commit is contained in:
Mitchell Hashimoto
2024-06-24 15:36:05 -07:00
parent 558bce388e
commit 00745f4caa
2 changed files with 4 additions and 4 deletions

View File

@ -434,7 +434,7 @@ expand this to other platforms.
## Developing Ghostty
To build Ghostty, you need [Zig 0.12](https://ziglang.org/) installed.
To build Ghostty, you need [Zig 0.13](https://ziglang.org/) installed.
On Linux, you may need to install additional dependencies. See
[Linux Installation Tips](#linux-installation-tips). On macOS, you
@ -448,8 +448,8 @@ Ghostty must pass within these Nix environments.
> [!NOTE]
>
> **Zig 0.12 is required.** Ghostty only guarantees that it can build
> against 0.12. Zig is still a fast-moving project so it is likely newer
> **Zig 0.13 is required.** Ghostty only guarantees that it can build
> against 0.13. Zig is still a fast-moving project so it is likely newer
> versions will not be able to build Ghostty yet. You can find binary
> releases of Zig release builds on the
> [Zig downloads page](https://ziglang.org/download/).

View File

@ -24,7 +24,7 @@ const Command = @import("src/Command.zig");
// Zig version. We don't check a maximum so that devs can try newer
// versions but this is the only version we guarantee to work.
comptime {
const required_zig = "0.12.0";
const required_zig = "0.13.0";
const current_zig = builtin.zig_version;
const min_zig = std.SemanticVersion.parse(required_zig) catch unreachable;
if (current_zig.order(min_zig) == .lt) {