commit be9841335e4038798dc40c9b265cd9094336e622 (tree)
parent 84e9aec13f0c0bd5e30286493dfdf9fb7665aaf1
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Sun, 21 Jul 2024 14:47:14 +0200
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.
Diffstat:
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/lib/compiler/aro/aro/target.zig b/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",
diff --git a/lib/std/Target.zig b/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,
diff --git a/src/codegen/llvm.zig b/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,