You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"zig cc -E" creates an unexpected object file #20359
# go to an empty directory
$ zig-0.13.0 cc -target aarch64-linux-gnu -E -x c -dM /dev/null
$ ls
# OK, still emtpy
$ zig-0.13.0 cc -target aarch64-macos-none -E -x c -dM /dev/null
$ ls
null.o
# ERROR, created file null.o !
Expected Behavior
zig cc -E should write to stdout and not create any files.
Activity
[-]"zig cc -E" creates an unexpected file[/-][+]"zig cc -E" creates an unexpected object file[/+]markus-oberhumer commentedon Jun 20, 2024
Note that this behaviour causes real problems, e.g. it has broken our CI job
https://github.com/upx/upx-test-build-with-zig/actions/runs/9595438042/job/26460222818
markus-oberhumer commentedon Jun 20, 2024
cc @kubkon
Vexu commentedon Jun 20, 2024
Might also be related to #13179
markus-oberhumer commentedon Jun 20, 2024
I don't think this is related:
zig cc -Eshould only write to stdout and never create any files-target XXX-macos-none, so this looks like a macos specific bugVexu commentedon Jun 20, 2024
The files mentioned in that issue should never be created either.
I'd guess that is because we don't use LLD for macos.