# CLI: remove cleanup logic for stdin temp file · gitcafe/zig

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

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

Visibility: public

Requested revision: 233a0d399135cdb581c5c080726c4cacc71695fe

Requested commit: 233a0d399135cdb581c5c080726c4cacc71695fe

Commit: 233a0d399135cdb581c5c080726c4cacc71695fe

Tree: ef09ca619a4430877414cc605525e648fe81cdeb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
CLI: remove cleanup logic for stdin temp file

In one of the happy paths, execve() is used to switch to clang in which
case any cleanup logic that exists for this temporary file will not run
and this temp file will be leaked. Oh well. It's a minor punishment for
using `-x c` which nobody should be doing. Therefore, we make no effort
to clean up. Using `-` for stdin as a source file always leaks a temp
file.

Note that the standard `zig build-exe` CLI does not support stdin as an
input file. This is only for `zig cc` C compiler compatibility.

```

## Parents

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

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