authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-21 14:47:14+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-07-21 22:38:30+02:00
logbe9841335e4038798dc40c9b265cd9094336e622
treed322b34cc6d86b3f25944a9e28542c16105b09e4
parent84e9aec13f0c0bd5e30286493dfdf9fb7665aaf1
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target.Os: Rename lv2 to ps3.

It is very non-obvious that this is what lv2 refers to, and we already use ps4 and ps5 to refer to the later models, so let's just be consistent.

3 files changed, 10 insertions(+), 10 deletions(-)

lib/compiler/aro/aro/target.zig+1-1
...@@ -634,7 +634,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {...@@ -634,7 +634,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
634 .freebsd => "freebsd",634 .freebsd => "freebsd",
635 .fuchsia => "fuchsia",635 .fuchsia => "fuchsia",
636 .linux => "linux",636 .linux => "linux",
637 .lv2 => "lv2",637 .ps3 => "lv2",
638 .netbsd => "netbsd",638 .netbsd => "netbsd",
639 .openbsd => "openbsd",639 .openbsd => "openbsd",
640 .solaris => "solaris",640 .solaris => "solaris",
lib/std/Target.zig+7-7
...@@ -24,7 +24,7 @@ pub const Os = struct {...@@ -24,7 +24,7 @@ pub const Os = struct {
24 fuchsia,24 fuchsia,
25 ios,25 ios,
26 linux,26 linux,
27 lv2,27 ps3,
28 macos,28 macos,
29 netbsd,29 netbsd,
30 openbsd,30 openbsd,
...@@ -143,7 +143,7 @@ pub const Os = struct {...@@ -143,7 +143,7 @@ pub const Os = struct {
143 .ananas,143 .ananas,
144 .cloudabi,144 .cloudabi,
145 .fuchsia,145 .fuchsia,
146 .lv2,146 .ps3,
147 .zos,147 .zos,
148 .haiku,148 .haiku,
149 .minix,149 .minix,
...@@ -375,7 +375,7 @@ pub const Os = struct {...@@ -375,7 +375,7 @@ pub const Os = struct {
375 .ananas,375 .ananas,
376 .cloudabi,376 .cloudabi,
377 .fuchsia,377 .fuchsia,
378 .lv2,378 .ps3,
379 .zos,379 .zos,
380 .haiku,380 .haiku,
381 .minix,381 .minix,
...@@ -562,7 +562,7 @@ pub const Os = struct {...@@ -562,7 +562,7 @@ pub const Os = struct {
562 .ananas,562 .ananas,
563 .cloudabi,563 .cloudabi,
564 .fuchsia,564 .fuchsia,
565 .lv2,565 .ps3,
566 .zos,566 .zos,
567 .minix,567 .minix,
568 .rtems,568 .rtems,
...@@ -668,7 +668,7 @@ pub const Abi = enum {...@@ -668,7 +668,7 @@ pub const Abi = enum {
668 .ananas,668 .ananas,
669 .cloudabi,669 .cloudabi,
670 .dragonfly,670 .dragonfly,
671 .lv2,671 .ps3,
672 .zos,672 .zos,
673 .minix,673 .minix,
674 .rtems,674 .rtems,
...@@ -1805,7 +1805,7 @@ pub const DynamicLinker = struct {...@@ -1805,7 +1805,7 @@ pub const DynamicLinker = struct {
1805 .ananas,1805 .ananas,
1806 .cloudabi,1806 .cloudabi,
1807 .fuchsia,1807 .fuchsia,
1808 .lv2,1808 .ps3,
1809 .zos,1809 .zos,
1810 .minix,1810 .minix,
1811 .rtems,1811 .rtems,
...@@ -2300,7 +2300,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {...@@ -2300,7 +2300,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
2300 },2300 },
23012301
2302 .cloudabi,2302 .cloudabi,
2303 .lv2,2303 .ps3,
2304 .zos,2304 .zos,
2305 .rtems,2305 .rtems,
2306 .aix,2306 .aix,
src/codegen/llvm.zig+2-2
...@@ -101,7 +101,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {...@@ -101,7 +101,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
101 .freebsd => "freebsd",101 .freebsd => "freebsd",
102 .fuchsia => "fuchsia",102 .fuchsia => "fuchsia",
103 .linux => "linux",103 .linux => "linux",
104 .lv2 => "lv2",104 .ps3 => "lv2",
105 .netbsd => "netbsd",105 .netbsd => "netbsd",
106 .openbsd => "openbsd",106 .openbsd => "openbsd",
107 .solaris, .illumos => "solaris",107 .solaris, .illumos => "solaris",
...@@ -221,7 +221,7 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {...@@ -221,7 +221,7 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
221 .fuchsia => .Fuchsia,221 .fuchsia => .Fuchsia,
222 .ios => .IOS,222 .ios => .IOS,
223 .linux => .Linux,223 .linux => .Linux,
224 .lv2 => .Lv2,224 .ps3 => .Lv2,
225 .macos => .MacOSX,225 .macos => .MacOSX,
226 .netbsd => .NetBSD,226 .netbsd => .NetBSD,
227 .openbsd => .OpenBSD,227 .openbsd => .OpenBSD,