Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / development / compilers / zig / 0.9 / 001-0.9-bump-macos-supported-version.patch
blob07b90e223553b9666f173028937347c9cdcc02db
1 From 98285b17b3887de37b630da66f09a44f42ddbe01 Mon Sep 17 00:00:00 2001
2 From: Jakub Konka <kubkon@jakubkonka.com>
3 Date: Tue, 25 Oct 2022 11:46:42 +0200
4 Subject: [PATCH] darwin: bump max macOS version to 13.0
6 ---
7 lib/std/target.zig | 4 ++--
8 src/target.zig | 2 ++
9 2 files changed, 4 insertions(+), 2 deletions(-)
11 diff --git a/lib/std/target.zig b/lib/std/target.zig
12 index d791e3b0350..7fbad5baa3c 100644
13 --- a/lib/std/target.zig
14 +++ b/lib/std/target.zig
15 @@ -277,13 +277,13 @@ pub const Target = struct {
16 .aarch64 => VersionRange{
17 .semver = .{
18 .min = .{ .major = 11, .minor = 6 },
19 - .max = .{ .major = 12, .minor = 0 },
20 + .max = .{ .major = 13, .minor = 0 },
23 .x86_64 => VersionRange{
24 .semver = .{
25 .min = .{ .major = 10, .minor = 13 },
26 - .max = .{ .major = 12, .minor = 0 },
27 + .max = .{ .major = 13, .minor = 0 },
30 else => unreachable,
31 diff --git a/src/target.zig b/src/target.zig
32 index 9e2d26dac65..fc585912c45 100644
33 --- a/src/target.zig
34 +++ b/src/target.zig
35 @@ -18,6 +18,7 @@ pub const available_libcs = [_]ArchOsAbi{
36 .{ .arch = .aarch64, .os = .windows, .abi = .gnu },
37 .{ .arch = .aarch64, .os = .macos, .abi = .gnu, .os_ver = .{ .major = 11, .minor = 0 } },
38 .{ .arch = .aarch64, .os = .macos, .abi = .gnu, .os_ver = .{ .major = 12, .minor = 0 } },
39 + .{ .arch = .aarch64, .os = .macos, .abi = .gnu, .os_ver = .{ .major = 13, .minor = 0 } },
40 .{ .arch = .armeb, .os = .linux, .abi = .gnueabi },
41 .{ .arch = .armeb, .os = .linux, .abi = .gnueabihf },
42 .{ .arch = .armeb, .os = .linux, .abi = .musleabi },
43 @@ -73,6 +74,7 @@ pub const available_libcs = [_]ArchOsAbi{
44 .{ .arch = .x86_64, .os = .macos, .abi = .gnu, .os_ver = .{ .major = 10, .minor = 0 } },
45 .{ .arch = .x86_64, .os = .macos, .abi = .gnu, .os_ver = .{ .major = 11, .minor = 0 } },
46 .{ .arch = .x86_64, .os = .macos, .abi = .gnu, .os_ver = .{ .major = 12, .minor = 0 } },
47 + .{ .arch = .x86_64, .os = .macos, .abi = .gnu, .os_ver = .{ .major = 13, .minor = 0 } },
50 pub fn libCGenericName(target: std.Target) [:0]const u8 {