Skip to content

Commit

Permalink
std.Target.Os: Rename lv2 to ps3.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexrp committed Jul 21, 2024
1 parent 8f1effb commit 1748865
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/compiler/aro/aro/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 7 additions & 7 deletions lib/std/Target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub const Os = struct {
fuchsia,
ios,
linux,
lv2,
ps3,
macos,
netbsd,
openbsd,
Expand Down Expand Up @@ -143,7 +143,7 @@ pub const Os = struct {
.ananas,
.cloudabi,
.fuchsia,
.lv2,
.ps3,
.zos,
.haiku,
.minix,
Expand Down Expand Up @@ -375,7 +375,7 @@ pub const Os = struct {
.ananas,
.cloudabi,
.fuchsia,
.lv2,
.ps3,
.zos,
.haiku,
.minix,
Expand Down Expand Up @@ -562,7 +562,7 @@ pub const Os = struct {
.ananas,
.cloudabi,
.fuchsia,
.lv2,
.ps3,
.zos,
.minix,
.rtems,
Expand Down Expand Up @@ -668,7 +668,7 @@ pub const Abi = enum {
.ananas,
.cloudabi,
.dragonfly,
.lv2,
.ps3,
.zos,
.minix,
.rtems,
Expand Down Expand Up @@ -1805,7 +1805,7 @@ pub const DynamicLinker = struct {
.ananas,
.cloudabi,
.fuchsia,
.lv2,
.ps3,
.zos,
.minix,
.rtems,
Expand Down Expand Up @@ -2299,7 +2299,7 @@ pub fn c_type_bit_size(target: Target, c_type: CType) u16 {
},

.cloudabi,
.lv2,
.ps3,
.zos,
.rtems,
.aix,
Expand Down
4 changes: 2 additions & 2 deletions src/codegen/llvm.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1748865

Please sign in to comment.