# macos: detect SDK path and version, then pass to the linker · gitcafe/zig

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

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

Visibility: public

Requested revision: 8317dbd1cb32eaeafa509e7142766f3d9a82de5f

Requested commit: 8317dbd1cb32eaeafa509e7142766f3d9a82de5f

Commit: 8317dbd1cb32eaeafa509e7142766f3d9a82de5f

Tree: 780a0c6d17d3b10b22a3cce70543240a4900d13e

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macos: detect SDK path and version, then pass to the linker

Since we are already detecting the path to the native SDK,
if available, also fetch SDK's version and route that to the linker.
The linker can then use it to correctly populate LC_BUILD_VERSION
load command.

```

## Parents

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

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