zig/lib/libc
Jakub Konka 5b813f1a2a Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default
Prior to this change we would assume the ABI for Apple targets to
be GNU which could result in subtle errors in LLVM emitting calls
to non-existent system libc provided functions such as `_sincosf`
which is a GNU extension and as such is not provided by macOS for example.
This would result in linker errors where the linker would not be
able to find the said symbol in `libSystem.tbd`.

With this change, we now correctly identify macOS (and other Apple
platforms) as having ABI `unknown` which translates to unspecified
in LLVM under-the-hood:

```
// main.ll
target triple = "aarch64-unknown-macos-unknown"
```

Note however that we never suffix the target OS with target version
such as `macos11` or `macos12` which means we fail to instruct LLVM
of potential optimisations provided by the OS such as the availability
of function `___sincosf_stret`. I suggest we investigate that in a
follow-up commit.
2022-05-22 17:45:02 +02:00
..
darwin Version libSystem shipped with zig toolchain 2021-11-25 17:10:08 +01:00
glibc glibc: clean up build logic 2022-01-14 12:39:06 -07:00
include Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default 2022-05-22 17:45:02 +02:00
mingw mingw-w64: add wsock32 def files 2021-11-26 20:57:30 -07:00
musl tools/gen_stubs: sort output by section/symbol name 2022-05-04 18:38:45 +02:00
wasi wasi-libc: remove crt1.o as it's not WASI ABI compatible 2021-07-11 00:06:47 +02:00