0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
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.
History 2025-02-17 19:18:19 +01:00
..
compiler std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
compiler_rt std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
docs std.ArrayList: popOrNull() -> pop() [v2] (#22720) 2025-02-10 04:21:31 +00:00
fuzzer/web Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
include zig cc: Remove headers related to GPU offload. 2024-12-16 04:36:57 +01:00
init fuzzer: write inputs to shared memory before running 2025-02-11 13:39:20 -08:00
libc musl: Apply Rich Felker's CVE-2025-26519 mitigation patches. 2025-02-14 06:42:57 +01:00
libcxx libcxx: Update to LLVM 19.1.0. 2024-09-19 18:20:22 -07:00
libcxxabi libcxxabi: Update to LLVM 19. 2024-09-19 18:20:21 -07:00
libunwind libunwind: Fix compilation for the x32 ABI. 2024-11-18 17:43:54 +01:00
std std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
tsan tsan: Update to LLVM 19.1.0. 2024-09-24 23:58:21 -07:00
c.zig c: Include Os.Tag.other in the list of freestanding OSs. 2024-11-08 14:56:55 +01:00
compiler_rt.zig x86_64: rewrite scalar and vector int @divTrunc 2025-02-15 03:45:21 -05:00
fuzzer.zig fuzzer: write inputs to shared memory before running 2025-02-11 13:39:20 -08:00
zig.h zig.h: Add new zig_gcc macro to indicate GCC. 2025-02-16 00:21:51 +01:00