# macho: add \<cpu_arch\>\-macosx to target strings as a fallback target · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f5dbcd1cb4374be619ba0b18e40a069a7e860d93)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f5dbcd1cb4374be619ba0b18e40a069a7e860d93

Requested commit: f5dbcd1cb4374be619ba0b18e40a069a7e860d93

Commit: f5dbcd1cb4374be619ba0b18e40a069a7e860d93

Tree: fff614baa3c0860cd5d0cbd3fed417ef9ed602e2

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: add <cpu_arch>-macosx to target strings as a fallback target

Turns out that around 10.13/10.14 macOS release version, Apple changed the target tags in
tbd files from `macosx` to `macos`. In order to be compliant and therefore actually support
linking on older platforms against `libSystem.tbd`, we add `<cpu_arch>-macosx` to target strings.

```

## Parents

- [a1b607acb5c1e9dd03760efd7078185e7628b29d](https://git.cafe/gitcafe/zig/commit/a1b607acb5c1e9dd03760efd7078185e7628b29d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f5dbcd1cb4374be619ba0b18e40a069a7e860d93?format=markdown)
