Skip to content

Fix Windows ARM64 cgo flags#50

Merged
dibu28 merged 1 commit intomainfrom
codex/fix-build-failure-on-aarch64
Aug 24, 2025
Merged

Fix Windows ARM64 cgo flags#50
dibu28 merged 1 commit intomainfrom
codex/fix-build-failure-on-aarch64

Conversation

@dibu28
Copy link
Owner

@dibu28 dibu28 commented Aug 24, 2025

Summary

  • avoid using -fPIC and -fno-stack-protector on Windows
  • allow building blake3, t1ha, rapidhash, and wyhash C implementations on all non-ARMv7 architectures
  • add SSE2 flags for 386 to support C backends on x86

Testing

  • go build ./... && echo build-ok
  • GOOS=windows GOARCH=arm64 CGO_ENABLED=1 CC="zig cc -target aarch64-windows-gnu" go build ./... (fails: c compiler "zig" not found)
  • GOOS=windows GOARCH=386 CGO_ENABLED=1 CC="zig cc -target i386-windows-gnu" go build ./... (fails: c compiler "zig" not found)

https://chatgpt.com/codex/tasks/task_e_68ab29a9e7cc8328895376482d7fa7a9

@dibu28 dibu28 merged commit 6bbee96 into main Aug 24, 2025
@dibu28 dibu28 deleted the codex/fix-build-failure-on-aarch64 branch August 24, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant