Skip to content

Commit be98413

Browse files
committed
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 commit be98413

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/compiler/aro/aro/target.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -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
Original file line numberDiff line numberDiff line change
@@ -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,

0 commit comments

Comments
 (0)