use case: using zig cc to cross compile a cgo program for windows #7874
Labels
downstream
An issue with a third party project that uses Zig.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
os-windows
zig cc
Zig as a drop-in C compiler feature
Milestone
Dowstream issue: golang/go#43886
main.go
CGO_ENABLED=1 GOOS=windows GOARCH=amd64 CC="zcc" CXX="zc++" go build main.go
zcc
zc++
output:
It produces
main.exe
but when run it segfaults inruntime.rt0_go()
(called from main()). This is probably an issue with the go runtime, and the next step here will be to file a downstream error report with go.The text was updated successfully, but these errors were encountered: