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

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

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

Visibility: public

Requested revision: c230258d9b53e98d49017588b839de5635ab7640

Requested commit: c230258d9b53e98d49017588b839de5635ab7640

Commit: c230258d9b53e98d49017588b839de5635ab7640

Tree: bb4f0368c6a7d86dfa7b5ec630443f8ec683a07a

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

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

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