# zig cc: integration with sysroot arg \(\#10568\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 3542dcad33f5e2021caeb897857b7cc3a57f2c23

Requested commit: 3542dcad33f5e2021caeb897857b7cc3a57f2c23

Commit: 3542dcad33f5e2021caeb897857b7cc3a57f2c23

Tree: 0745077b440b586424582e47854e60c564c607d6

Author: Jakub Konka

Committer: Andrew Kelley

## Message

````
zig cc: integration with sysroot arg (#10568)

Prior to this change, even if the use specified the sysroot on the
compiler line like so

```
zig cc --sysroot=/path/to/sdk
```

it would only be used as a prefix to include paths and not as a prefix
for `zig ld` linker.
````

## Parents

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

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