-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Import new Bionic module from Android overlay instead where possible #7755
Conversation
@@ -19,6 +19,8 @@ import Musl | |||
#elseif os(Windows) | |||
import CRT | |||
import WinSDK | |||
#elseif canImport(Android) | |||
import Android |
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.
Can we use Bionic
here instead? Note that Darwin is using Darwin.C
and Windows is using CRT
. Of course if we need more than the C interfaces, Android
is fine, but would be nice to keep this scoped to the same level as the other platforms.
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'll check if that's enough.
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.
Done
Also, add the import in `Environment.swift` too
@rauhul, a CI run and we can get this in. |
@swift-ci please test |
@kateinoigakukun, passed CI, ready for merge. |
Also, add the import in
Environment.swift
too@rauhul, you added that last file just after I got these imports in with #7615, so I recently had to add this too to keep it building on Android.