# Detect native iframework dirs on macOS · gitcafe/zig

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

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

Visibility: public

Requested revision: 91a35e1a922e865ca0e9beb43a2be2c5552fc494

Requested commit: 91a35e1a922e865ca0e9beb43a2be2c5552fc494

Commit: 91a35e1a922e865ca0e9beb43a2be2c5552fc494

Tree: d12efbc864e83cff8ceaaccdd4181978078acc75

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
Detect native iframework dirs on macOS

This commit adds default search paths for system frameworks
on macOS while also adding `-isysroot` for OS versions at least BigSur.
Since BigSur (11.0.1), neither headers nor libs exist in standard
root locations (`/usr/include`, `/System/Library/Frameworks`). Instead, they
are now exclusively part of the installed developer toolchain (either
via XCode.app or CLT), and specifying `-isysroot` allows us to keep
using universal search paths such as `/System/Library/Frameworks` while
only changing the include flag from `-iframework` to
`-iframeworkwithsysroot`.

```

## Parents

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

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