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 {
634634 .freebsd => "freebsd",
635635 .fuchsia => "fuchsia",
636636 .linux => "linux",
637 .lv2 => "lv2",
637 .ps3 => "lv2",
638638 .netbsd => "netbsd",
639639 .openbsd => "openbsd",
640640 .solaris => "solaris",
lib/std/Target.zig+7-7
......@@ -24,7 +24,7 @@ pub const Os = struct {
2424 fuchsia,
2525 ios,
2626 linux,
27 lv2,
27 ps3,
2828 macos,
2929 netbsd,
3030 openbsd,
......@@ -143,7 +143,7 @@ pub const Os = struct {
143143 .ananas,
144144 .cloudabi,
145145 .fuchsia,
146 .lv2,
146 .ps3,
147147 .zos,
148148 .haiku,
149149 .minix,
......@@ -375,7 +375,7 @@ pub const Os = struct {
375375 .ananas,
376376 .cloudabi,
377377 .fuchsia,
378 .lv2,
378 .ps3,
379379 .zos,
380380 .haiku,
381381 .minix,
......@@ -562,7 +562,7 @@ pub const Os = struct {
562562 .ananas,
563563 .cloudabi,
564564 .fuchsia,
565 .lv2,
565 .ps3,
566566 .zos,
567567 .minix,
568568 .rtems,
......@@ -668,7 +668,7 @@ pub const Abi = enum {
668668 .ananas,
669669 .cloudabi,
670670 .dragonfly,
671 .lv2,
671 .ps3,
672672 .zos,
673673 .minix,
674674 .rtems,
......@@ -1805,7 +1805,7 @@ pub const DynamicLinker = struct {
18051805 .ananas,
18061806 .cloudabi,
18071807 .fuchsia,
1808 .lv2,
1808 .ps3,
18091809 .zos,
18101810 .minix,
18111811 .rtems,
......@@ -2300,7 +2300,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
23002300 },
23012301
23022302 .cloudabi,
2303 .lv2,
2303 .ps3,
23042304 .zos,
23052305 .rtems,
23062306 .aix,
src/codegen/llvm.zig+2-2
......@@ -101,7 +101,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
101101 .freebsd => "freebsd",
102102 .fuchsia => "fuchsia",
103103 .linux => "linux",
104 .lv2 => "lv2",
104 .ps3 => "lv2",
105105 .netbsd => "netbsd",
106106 .openbsd => "openbsd",
107107 .solaris, .illumos => "solaris",
......@@ -221,7 +221,7 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
221221 .fuchsia => .Fuchsia,
222222 .ios => .IOS,
223223 .linux => .Linux,
224 .lv2 => .Lv2,
224 .ps3 => .Lv2,
225225 .macos => .MacOSX,
226226 .netbsd => .NetBSD,
227227 .openbsd => .OpenBSD,