authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-07-07 15:08:52+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-07-07 15:19:56+02:00
loga3c08eccbe30255b744ba14dca0061b396a84bab
treee264fc8138cd8f18322444620dfe04ec60a49065
parent8219c86100b9679255ad06bf6a743716bef26102
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Target: remove some no longer helpful comments


1 files changed, 0 insertions(+), 57 deletions(-)

lib/std/Target.zig-57
......@@ -74,14 +74,6 @@ pub const Os = struct {
7474
7575 ashetos,
7676
77 // LLVM tags deliberately omitted:
78 // - bridgeos
79 // - cheriotrtos
80 // - darwin
81 // - kfreebsd
82 // - nacl
83 // - shadermodel
84
8577 pub inline fn isDarwin(tag: Tag) bool {
8678 return switch (tag) {
8779 .driverkit,
......@@ -825,33 +817,6 @@ pub const Abi = enum {
825817 ohoseabi,
826818 call0,
827819
828 // LLVM tags deliberately omitted:
829 // - amplification
830 // - anyhit
831 // - callable
832 // - closesthit
833 // - compute
834 // - coreclr
835 // - domain
836 // - geometry
837 // - gnueabit64
838 // - gnueabihft64
839 // - gnuf64
840 // - gnut64
841 // - hull
842 // - intersection
843 // - library
844 // - llvm
845 // - mesh
846 // - miss
847 // - mlibc
848 // - mtia
849 // - pauthtest
850 // - pixel
851 // - raygeneration
852 // - rootsignature
853 // - vertex
854
855820 pub fn default(arch: Cpu.Arch, os_tag: Os.Tag) Abi {
856821 return switch (os_tag) {
857822 .freestanding, .other => switch (arch) {
......@@ -1079,9 +1044,6 @@ pub const ObjectFormat = enum {
10791044 /// The WebAssembly binary format.
10801045 wasm,
10811046
1082 // LLVM tags deliberately omitted:
1083 // - dxcontainer
1084
10851047 pub fn fileExt(of: ObjectFormat, arch: Cpu.Arch) [:0]const u8 {
10861048 return switch (of) {
10871049 .c => ".c",
......@@ -1439,24 +1401,6 @@ pub const Cpu = struct {
14391401 xtensa,
14401402 xtensaeb,
14411403
1442 // LLVM tags deliberately omitted:
1443 // - aarch64_32
1444 // - amdil
1445 // - amdil64
1446 // - dxil
1447 // - r600
1448 // - hsail
1449 // - hsail64
1450 // - renderscript32
1451 // - renderscript64
1452 // - shave
1453 // - sparcel
1454 // - spir
1455 // - spir64
1456 // - spirv
1457 // - tce
1458 // - tcele
1459
14601404 /// An architecture family can encompass multiple architectures as represented by `Arch`.
14611405 /// For a given family tag, it is guaranteed that an `std.Target.<tag>` namespace exists
14621406 /// containing CPU model and feature data.
......@@ -2696,7 +2640,6 @@ pub const DynamicLinker = struct {
26962640 .or1k,
26972641 => |arch| if (abi == .gnu) initFmt("/lib/ld-linux-{s}.so.1", .{@tagName(arch)}) else none,
26982642
2699 // TODO: `-be` architecture support.
27002643 .csky => initFmt("/lib/ld-linux-cskyv2{s}.so.1", .{switch (abi) {
27012644 .gnueabi => "",
27022645 .gnueabihf => "-hf",