Skip to content

Fix Internal _mantissa problem on WASI#132

Open
KINGH242 wants to merge 1 commit into
attaswift:masterfrom
KINGH242:fix-wasi-mantissa
Open

Fix Internal _mantissa problem on WASI#132
KINGH242 wants to merge 1 commit into
attaswift:masterfrom
KINGH242:fix-wasi-mantissa

Conversation

@KINGH242

Copy link
Copy Markdown

Summary

On WASI, Decimal is provided by FoundationEssentials, where _mantissa
has internal access — the same situation that PR #125 addressed for
Windows and that the original guard handled for Linux/Android.

Without this change, BigInt fails to build for the wasm32-unknown-wasip1
SDK

On WASI, `Decimal` comes from FoundationEssentials where `_mantissa`
has internal access, the same situation as Linux/Android/Windows.
Add `os(WASI)` to the exclusion gates so the string-based significand
path is used and `mantissaParts` is not compiled.
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