# native libc detection: respect spaces in CC env var · gitcafe/zig

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

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

Visibility: public

Requested revision: d128ec39df4c0a701523d7d7161df3808a6939d2

Requested commit: d128ec39df4c0a701523d7d7161df3808a6939d2

Commit: d128ec39df4c0a701523d7d7161df3808a6939d2

Tree: f84736ceeae607ad26e3defe2ffbdd57a4f9455b

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
native libc detection: respect spaces in CC env var

Zig has detection for when it is accidentally being called recursively
when trying to find the native libc installation. However it was not
working, resulting in a cryptic failure, because zig tried to execute
a command which had spaces in it rather than tokenizing it.

This improves the user experience of `zig cc` for systems that Zig
does not support cross-compiling for.

Closes #8960

```

## Parents

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

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