zig icon indicating copy to clipboard operation
zig copied to clipboard

build-exe leaves behind object files

Open yujiri8 opened this issue 3 years ago • 3 comments

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.

yujiri8 avatar Oct 15 '22 23:10 yujiri8

Am currently bisecting to find when the change was introduced, I think it was recent

ghost avatar Oct 15 '22 23:10 ghost

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.

ghost avatar Oct 16 '22 01:10 ghost

Similarly running zig build-obj a.zig will produce both a.o and a.o.o.

Vexu avatar Oct 17 '22 10:10 Vexu