diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-05-16 16:37:07 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-05-16 16:41:22 -0700 |
| commit | 233a0d399135cdb581c5c080726c4cacc71695fe (patch) | |
| tree | ef09ca619a4430877414cc605525e648fe81cdeb /lib/std/Build.zig | |
| parent | ae119a9a8d5b8dec21bd314e91afcec122eb8631 (diff) | |
| download | zig-233a0d399135cdb581c5c080726c4cacc71695fe.tar.gz zig-233a0d399135cdb581c5c080726c4cacc71695fe.zip | |
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.
Diffstat (limited to 'lib/std/Build.zig')
0 files changed, 0 insertions, 0 deletions
