0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib/libc/include
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.
History 2022-05-22 17:45:02 +02:00
..
aarch64-linux-any/asm [linux headers] rename arm64 to aarch64 2022-01-26 07:57:34 +02:00
aarch64-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
aarch64-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
aarch64-macos.11-none Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default 2022-05-22 17:45:02 +02:00
aarch64-macos.12-none Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default 2022-05-22 17:45:02 +02:00
aarch64_be-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
any-linux-any [linux headers] rename arm64 to aarch64 2022-01-26 07:57:34 +02:00
any-macos-any Add missing macOS libc headers 2021-11-27 12:12:01 -08:00
any-macos.11-any Add missing macOS libc headers 2021-11-27 12:12:01 -08:00
any-macos.12-any add libc headers for all supported macOS versions 2021-11-25 12:19:16 +01:00
any-windows-any update mingw-w64 headers to v9.0.0 2021-06-04 09:29:56 -07:00
arc-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
arm-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
arm-linux-gnueabi glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
arm-linux-gnueabihf glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
arm-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
armeb-linux-gnueabi glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
armeb-linux-gnueabihf glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
csky-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
csky-linux-gnueabi glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
csky-linux-gnueabihf glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
generic-glibc glibc: version-gate _DYNAMIC_STACK_SIZE_SOURCE 2022-01-28 18:36:23 -07:00
generic-musl musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
hexagon-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
i386-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
i386-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
m68k-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
m68k-linux-gnu glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
m68k-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
mips-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
mips-linux-gnueabi glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
mips-linux-gnueabihf glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
mips-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
mips64-linux-gnuabi64 glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
mips64-linux-gnuabin32 glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
mips64-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
mips64el-linux-gnuabi64 glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
mips64el-linux-gnuabin32 glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
mipsel-linux-gnueabi glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
mipsel-linux-gnueabihf glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
powerpc-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
powerpc-linux-gnueabi glibc: fix inconsistency of powerpc ABI mapping 2021-12-16 03:01:13 -07:00
powerpc-linux-gnueabihf glibc: fix inconsistency of powerpc ABI mapping 2021-12-16 03:01:13 -07:00
powerpc-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
powerpc64-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
powerpc64-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
powerpc64le-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
riscv-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
riscv64-linux-gnu glibc: add missing riscv stubs headers 2021-12-15 18:34:27 -07:00
riscv64-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
s390x-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
s390x-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
s390x-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
sparc-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
sparc-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
sparcv9-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
wasm-freestanding-musl restore -target wasm32-freestanding-musl for C headers 2020-11-30 20:44:36 -07:00
wasm-wasi-musl wasi,cc: fix naming and add stubs for building 2021-05-20 16:54:00 +02:00
x86-linux-any/asm update libc linux headers to v5.16-rc3 2021-11-29 18:05:11 -07:00
x86_64-linux-gnu update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
x86_64-linux-gnux32 update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
x86_64-linux-musl/bits musl: update to 1.2.3 2022-05-04 01:00:57 +02:00
x86_64-macos.10-none Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default 2022-05-22 17:45:02 +02:00
x86_64-macos.11-none Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default 2022-05-22 17:45:02 +02:00
x86_64-macos.12-none Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default 2022-05-22 17:45:02 +02:00