# darwin: move inference of SDK version into the linker · gitcafe/zig

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

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

Visibility: public

Requested revision: 3b2b9fcbc5e162063febf989883f29e55cc64c65

Requested commit: 3b2b9fcbc5e162063febf989883f29e55cc64c65

Commit: 3b2b9fcbc5e162063febf989883f29e55cc64c65

Tree: c85bbce50c24a18df10e08889b1cb3cc3f69e335

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
darwin: move inference of SDK version into the linker

`std.zig.system.darwin.getSdk` now pulls only the SDK path
so we execute a child process only once and not twice as it was
until now since we parse the SDK version directly from the pulled path.
This is actually how `ld64` does it too.

```

## Parents

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

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