# On darwin, only add the self exe to the cache hash for compiler id \(\#5880\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 82562b205f9d99c27c4d5224311734e141bf2fda

Requested commit: 82562b205f9d99c27c4d5224311734e141bf2fda

Commit: 82562b205f9d99c27c4d5224311734e141bf2fda

Tree: 809850807d9c3ac439f3b5e1a5d652f538198dd0

Author: haze

Committer: GitHub

## Message

```
On darwin, only add the self exe to the cache hash for compiler id (#5880)

Now that Big Sur does not have system libraries on the filesystem, zig can no longer read them and add them to the cache hash for the compiler id.
This changes it so that only the first library path returned by os_self_exe_shared_libs is added to the cache hash under Darwin. I looked into methods on getting the system version to keep parity with older versions, but @fengb reported that this works on Catalina (a version behind Big Sur)

Signed-off-by: Haze Booth <isnt@haze.cool>
```

## Parents

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

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