zig
zig copied to clipboard
build-exe leaves behind object files
Zig Version
0.10.0-dev.4418+99c3578f6
Steps to Reproduce
zig build-exe foo.zig, for any foo.zig
Expected Behavior
Creates foo executable, but doesn't leave behind foo.o.
Actual Behavior
foo.o is also created.
Am currently bisecting to find when the change was introduced, I think it was recent
Hmm, seems to go back at least to 716d9237, where LLVM 15 was introduced, and I'm having trouble building older versions than that. So the behavior is older than I thought. I know 0.9.1 doesn't do it.
Similarly running zig build-obj a.zig will produce both a.o and a.o.o.