zig/lib/compiler
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
..
aro std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
aro_translate_c cbe,translate-c: support more callconvs 2024-10-19 19:15:24 +01:00
reduce reduce: fix compile errors 2024-03-24 17:29:39 +01:00
resinator resinator: Fix some error message integration 2025-02-10 01:37:04 -08:00
aro_translate_c.zig Sema: rewrite semantic analysis of function calls 2025-01-09 06:46:47 +00:00
build_runner.zig std.ArrayList: popOrNull() -> pop() [v2] (#22720) 2025-02-10 04:21:31 +00:00
libc.zig zig libc: allow non-native targets 2024-03-13 02:17:28 -04:00
objcopy.zig objcopy: check both global and local when remapping 2024-10-12 10:44:17 -07:00
reduce.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
std-docs.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00
test_runner.zig fuzzer: write inputs to shared memory before running 2025-02-11 13:39:20 -08:00