Commit be9841335e

Alex Rønne Petersen <alex@alexrp.com>
2024-07-21 14:47:14
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.
1 parent 84e9aec
Changed files (3)
lib
compiler
aro
std
src
codegen
lib/compiler/aro/aro/target.zig
@@ -634,7 +634,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
         .freebsd => "freebsd",
         .fuchsia => "fuchsia",
         .linux => "linux",
-        .lv2 => "lv2",
+        .ps3 => "lv2",
         .netbsd => "netbsd",
         .openbsd => "openbsd",
         .solaris => "solaris",
lib/std/Target.zig
@@ -24,7 +24,7 @@ pub const Os = struct {
         fuchsia,
         ios,
         linux,
-        lv2,
+        ps3,
         macos,
         netbsd,
         openbsd,
@@ -143,7 +143,7 @@ pub const Os = struct {
                 .ananas,
                 .cloudabi,
                 .fuchsia,
-                .lv2,
+                .ps3,
                 .zos,
                 .haiku,
                 .minix,
@@ -375,7 +375,7 @@ pub const Os = struct {
                 .ananas,
                 .cloudabi,
                 .fuchsia,
-                .lv2,
+                .ps3,
                 .zos,
                 .haiku,
                 .minix,
@@ -562,7 +562,7 @@ pub const Os = struct {
             .ananas,
             .cloudabi,
             .fuchsia,
-            .lv2,
+            .ps3,
             .zos,
             .minix,
             .rtems,
@@ -668,7 +668,7 @@ pub const Abi = enum {
             .ananas,
             .cloudabi,
             .dragonfly,
-            .lv2,
+            .ps3,
             .zos,
             .minix,
             .rtems,
@@ -1805,7 +1805,7 @@ pub const DynamicLinker = struct {
             .ananas,
             .cloudabi,
             .fuchsia,
-            .lv2,
+            .ps3,
             .zos,
             .minix,
             .rtems,
@@ -2300,7 +2300,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
         },
 
         .cloudabi,
-        .lv2,
+        .ps3,
         .zos,
         .rtems,
         .aix,
src/codegen/llvm.zig
@@ -101,7 +101,7 @@ pub fn targetTriple(allocator: Allocator, target: std.Target) ![]const u8 {
         .freebsd => "freebsd",
         .fuchsia => "fuchsia",
         .linux => "linux",
-        .lv2 => "lv2",
+        .ps3 => "lv2",
         .netbsd => "netbsd",
         .openbsd => "openbsd",
         .solaris, .illumos => "solaris",
@@ -221,7 +221,7 @@ pub fn targetOs(os_tag: std.Target.Os.Tag) llvm.OSType {
         .fuchsia => .Fuchsia,
         .ios => .IOS,
         .linux => .Linux,
-        .lv2 => .Lv2,
+        .ps3 => .Lv2,
         .macos => .MacOSX,
         .netbsd => .NetBSD,
         .openbsd => .OpenBSD,