Skip to content

Fix Windows CI uint128 backend selection#375

Merged
hoffmang9 merged 3 commits into
mainfrom
cursor/fix-windows-uint128-fallback
Jun 16, 2026
Merged

Fix Windows CI uint128 backend selection#375
hoffmang9 merged 3 commits into
mainfrom
cursor/fix-windows-uint128-fallback

Conversation

@hoffmang9

Copy link
Copy Markdown
Member

Summary

  • Remove illegal namespace std trait specializations from vendored uint128_t that break builds on MSVC STL 14.51 (windows-latest).
  • Unify Windows 128-bit integer backend selection under CHIAVDF_USE_UINT128_T_FALLBACK, set by CMake and consumed by include.h.
  • Skip compiling uint128_t.cpp on clang-cl CI when native unsigned __int128 is available, and define uint128 alias in the fallback path.

Test plan

  • Confirm CI (windows-latest, optimized=1) passes in VDF client & HW CI
  • Verify Windows wheel builds still pass (MSVC fallback path)
  • Confirm Linux/macOS CI unchanged

Made with Cursor

hoffmang9 and others added 2 commits June 16, 2026 14:10
Remove illegal std trait specializations from uint128_t, gate the fallback
translation unit behind CHIAVDF_USE_UINT128_T_FALLBACK, and drive include.h
from that single definition on Windows builds.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keeps include.h consistent with GCD/VDF headers that expect a uint128 type
when CHIAVDF_USE_UINT128_T_FALLBACK is enabled.

Co-authored-by: Cursor <cursoragent@cursor.com>
@hoffmang9 hoffmang9 marked this pull request as ready for review June 16, 2026 21:35
haorldbchi
haorldbchi previously approved these changes Jun 16, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@hoffmang9 hoffmang9 merged commit de9e16e into main Jun 16, 2026
67 checks passed
@hoffmang9 hoffmang9 deleted the cursor/fix-windows-uint128-fallback branch June 16, 2026 22:28
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.

2 participants