# zig libc: allow non-native targets · gitcafe/zig

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

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

Visibility: public

Requested revision: 22fd1851bd56dae5b61e5f170671f3af5ef54330

Requested commit: 22fd1851bd56dae5b61e5f170671f3af5ef54330

Commit: 22fd1851bd56dae5b61e5f170671f3af5ef54330

Tree: 631a1e010de32051879bab6898e5a4b7bede339b

Author: Michael Dusan

Committer: Michael Dusan

## Message

````
zig libc: allow non-native targets

On macos, allow targets supported by the SDK. This then spawns `xcrun`
and correct paths are emitted for:

- x86_64-macos
- x86_64-ios
- x86_64-tvos
- x86_64-watchos
- x86_64-ios-macbi
- aarch64-macos
- aarch64-ios
- aarch64-tvos
- aarch64-watchos
- aarch64-ios-macbi

On platforms with android NDK, allow android targets. Example usage:

```
CC=/NDK/.../bin/aarch64-linux-android34-clang zig libc -target aarch64-linux-android
```

````

## Parents

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

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