# build.zig: better detection of using outside zig executable · gitcafe/zig

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

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

Visibility: public

Requested revision: dc7e8b2fdcc35bc78abfe2413201ca6a74aa20d4

Requested commit: dc7e8b2fdcc35bc78abfe2413201ca6a74aa20d4

Commit: dc7e8b2fdcc35bc78abfe2413201ca6a74aa20d4

Tree: fe0f72cfbe5c2421ac245277f405c6b5ac56ef9f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
build.zig: better detection of using outside zig executable

As pointed out by gereeter, dirname("/") successfully returns "/" again.
So checking for null is not sufficient.

```

## Parents

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

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