Skip to content

Conversation

@iCharlesHu
Copy link
Contributor

Rationale: @_cdecl emits a C symbol that calls back to the Swift symbol. These new swift symbols does not exist on older OSs, causing a crash due to sym bol not found. Instead of using @_cdecl to implement public methods directly, use it on an internal type so it will not introduce unexpected public symbols.

resolves: rdar://133371820

… defined in NSDecimal.h

Rationale: @_cdecl emits a C symbol that calls back to the Swift symbol. These new swift symbols does not exist on older OSs, causing a crash due to sym
bol not found. Instead of using @_cdecl to implement public methods directly, use it on an internal type so it will not introduce unexpected public symbols.

resolves: rdar://133371820
@iCharlesHu iCharlesHu requested a review from jmschonfeld August 21, 2024 01:02
@iCharlesHu iCharlesHu marked this pull request as ready for review August 21, 2024 01:02
@iCharlesHu
Copy link
Contributor Author

@swift-ci please test

@iCharlesHu iCharlesHu merged commit e34e1c9 into swiftlang:main Aug 21, 2024
@iCharlesHu iCharlesHu deleted the charles/decimal-bin-compat branch August 21, 2024 15:40
cthielen pushed a commit to cthielen/swift-foundation that referenced this pull request Nov 8, 2024
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