0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/ci/azure
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
..
build.zig ci: use zig-bootstrap for windows 2022-02-16 18:43:45 -07:00
macos_arm64_script Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default 2022-05-22 17:45:02 +02:00
macos_script Set macOS/iPhoneOS/tvOS/watchOS ABI to none (unspecified) by default 2022-05-22 17:45:02 +02:00
on_master_success ci: avoid leaking oauth access token 2019-11-03 14:55:21 -05:00
pipelines.yml ci: azure: update to newest LTS ubuntu 2022-03-06 20:03:57 -07:00