# fix\(cc\): make link and preprocessor logic to be more consistent with · gitcafe/zig

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

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

Visibility: public

Requested revision: 308ba80597864ab12b77cff1ce28f001ad551fdf

Requested commit: 308ba80597864ab12b77cff1ce28f001ad551fdf

Commit: 308ba80597864ab12b77cff1ce28f001ad551fdf

Tree: 3b8d28b3622a8ad508d54e31fef8baa1ba645af0

Author: zhylmzr

Committer: Alex Rønne Petersen

## Message

```
fix(cc): make link and preprocessor logic to be more consistent with
clang's behavior.

1. `zig cc main.c -o /dev/null` shouldn't emit a.out
2. `zig cc -E main.c` and `zig cc -E main -o -` should output to stdout

```

## Parents

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

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