Skip to content

Restore macOS 12 native form conversion and package CI - #909

Merged
wieslawsoltes merged 1 commit into
mainfrom
fix/macos12-floating-charconv-908
Sep 22, 2026
Merged

wieslawsoltes merged 1 commit into
mainfrom
fix/macos12-floating-charconv-908

Conversation

@wieslawsoltes

Copy link
Copy Markdown
Collaborator

Problem and result

NuGet packages / Build osx-arm64 targets macOS 12, but floating std::from_chars and std::to_chars in native form handling require newer macOS runtimes. The package job has failed on main before it can produce artifacts (for example runs 35585510953, 35581500980, 35574320848).

This patch keeps the macOS 12 target. Older Apple targets use a C-locale strtod_l/snprintf_l path for finite form values; newer targets retain charconv. It also routes the accessibility numeric step action through the same formatter. Integer parsing remains on charconv.

Validation

  • Focused CMake test compiles and links with -mmacosx-version-min=12.0; Mach-O minimum verified as 12.0 and undefined conversion symbols are _snprintf_l/_strtod_l.
  • CTest passes invalid/finite, subnormal, negative-zero, exponent-boundary, time, locale, and round-trip checks. 10,000 conversions took 8.6 ms in Release and 19.2 ms at -O0, below the 500 ms gate.
  • A deterministic 99,969-value finite-double sample matched modern charconv with zero formatting and bitwise parse differences.
  • Full NuGet packages / Build osx-arm64 is the remaining authoritative package gate for this PR.

Validation details: docs/validation/macos12-form-charconv-908.md.

Closes #908.

@wieslawsoltes

Copy link
Copy Markdown
Collaborator Author

Additional focused equivalence check: 100,000 deterministic fixed-15-decimal time values matched modern std::to_chars byte-for-byte (snprintf_l differences: 0). The macOS 12-target CTest still passes after the exponent-notation boundary cases; the test Mach-O minimum is 12.0.

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.

Restore macOS 12 NuGet package CI for floating form serialization

1 participant