-
Notifications
You must be signed in to change notification settings - Fork 193
FoundationEssentials,FoundationInternationalization: adjust for aliasing #1340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
When enabling symbol renaming in ICU, we import the functions as an alias. This causes the implicit nullability translation with C to disappear. Make these conversions explicit so that we can enable symbol renaming on non-Darwin platforms.
@@ -117,6 +117,7 @@ import Darwin | |||
#elseif canImport(Android) | |||
@preconcurrency import Android | |||
import posix_filesystem.dirent | |||
internal import _FoundationCShims |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this file uses ICU - is this change required / relevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was needed to resolve some of the aliases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the functions that would break without this? While I can believe this change is needed for us to build, I'm surprised that it's because of the ICU change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ICU related parts look good to me
@@ -117,6 +117,7 @@ import Darwin | |||
#elseif canImport(Android) | |||
@preconcurrency import Android | |||
import posix_filesystem.dirent | |||
internal import _FoundationCShims |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the functions that would break without this? While I can believe this change is needed for us to build, I'm surprised that it's because of the ICU change.
When enabling symbol renaming in ICU, we import the functions as an alias. This causes the implicit nullability translation with C to disappear. Make these conversions explicit so that we can enable symbol renaming on non-Darwin platforms.