Skip to content

Conversation

ianks
Copy link
Collaborator

@ianks ianks commented Jul 5, 2025

This PR provides a minimal fix for the Windows build failures caused by Clang 20's AVX512 FP16 intrinsics.

The fix simply targets basic x86-64 without vector extensions on Windows x86_64 systems by adding:

  • -march=x86-64
  • -mtune=generic

This prevents Clang from loading the problematic AVX512 intrinsics headers that contain types like __m512h which bindgen cannot handle.

@ianks ianks force-pushed the minimal-windows-fix branch 2 times, most recently from 6eb1fcc to 342276f Compare July 6, 2025 04:12
- Bump setup-ruby-and-rust action to latest commit
- Add AVX512/FP16 workaround for Windows x86_64 in bindgen
- Disable layout/debug derives for Ruby 2.7/3.0 on MinGW
- Opaque __mingw_ldbl_type_t to avoid ABI issues
@ianks ianks force-pushed the minimal-windows-fix branch from 342276f to bfc7eda Compare July 6, 2025 17:03
@ianks ianks merged commit 6e382ce into main Jul 6, 2025
60 checks passed
@ianks ianks deleted the minimal-windows-fix branch July 6, 2025 17:04
@ianks ianks restored the minimal-windows-fix branch July 6, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant