zig/lib/std/Target
Alex Rønne Petersen 481b7bf3f0
std.Target: Remove functions that just wrap component functions.
Functions like isMinGW() and isGnuLibC() have a good reason to exist: They look
at multiple components of the target. But functions like isWasm(), isDarwin(),
isGnu(), etc only exist to save 4-8 characters. I don't think this is a good
enough reason to keep them, especially given that:

* It's not immediately obvious to a reader whether target.isDarwin() means the
  same thing as target.os.tag.isDarwin() precisely because isMinGW() and similar
  functions *do* look at multiple components.
* It's not clear where we would draw the line. The logical conclusion before
  this commit would be to also wrap Arch.isX86(), Os.Tag.isSolarish(),
  Abi.isOpenHarmony(), etc... this obviously quickly gets out of hand.
* It's nice to just have a single correct way of doing something.
2025-02-17 19:18:19 +01:00
..
aarch64.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
amdgcn.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
arc.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
arm.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
avr.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
bpf.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
csky.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
hexagon.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
lanai.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
loongarch.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
m68k.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
mips.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
msp430.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
nvptx.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
powerpc.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
propeller.zig std.Target: Remove Cpu.Arch.propeller2 and use a CPU feature instead. 2025-02-17 19:17:55 +01:00
Query.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
riscv.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
s390x.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
sparc.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
spirv.zig std: update std.builtin.Type fields to follow naming conventions 2024-08-28 08:39:59 +01:00
ve.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
wasm.zig wasm: Add a nontrapping_bulk_memory_len0 feature. 2025-01-22 20:56:28 +01:00
x86.zig x86_64: implement clz and not 2025-01-16 20:42:08 -05:00
xcore.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00
xtensa.zig refactor update_cpu_features.zig 2024-11-25 01:11:15 -08:00