# zig cc: special handling of /dev/null · gitcafe/zig

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

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

Visibility: public

Requested revision: e1375942e584d4fffd3ecd06277ced7cf35d7e6c

Requested commit: e1375942e584d4fffd3ecd06277ced7cf35d7e6c

Commit: e1375942e584d4fffd3ecd06277ced7cf35d7e6c

Tree: 024365c5e9a858182e253bdfcd81e220b15a93fe

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zig cc: special handling of /dev/null

Now we handle -o /dev/null equivalent to -fno-emit-bin because
otherwise our atomic rename into place will fail. This also
makes Zig do less work, avoiding pointless file system operations.

```

## Parents

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

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