Skip to content

[android] Remove SunSoft libm dependencies #18

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

Closed

Conversation

modocache
Copy link
Member

SunSoft libm dependencies introduce licensing issues when considering merging this fork upstream. Remove them for Android only. In order to do so, we must also remove the reference to log2 in
stdlib/public/core/BuiltinMath.swift,gyb. Conditionally remove that reference by passing an additional parameter to the gyb template.

SunSoft libm dependencies introduce licensing issues when considering
merging this fork upstream. Remove them for Android-only. In order to
do so, we must also remove the reference to `log2` in
`stdlib/public/core/BuiltinMath.swift,gyb`. Conditionally remove that
reference by passing an additional parameter to the gyb template.
@modocache
Copy link
Member Author

I'll add a test that uses log2, then mark it as XFAIL for Android.

@modocache
Copy link
Member Author

Actually, we may be able to get log2 by updating the Android NDK version we use. That sounds like the better approach!

@modocache
Copy link
Member Author

Fixed in 4a39bc6!

@modocache modocache closed this Feb 19, 2016
@modocache modocache deleted the swiftandroid-dependencies branch February 19, 2016 21:21
@zhuowei
Copy link
Member

zhuowei commented Feb 20, 2016

Does this mean we can't run on Android 4.4 and below? That's like half the Android devices out there: http://developer.android.com/about/dashboards/index.html

Note that the SunSoft libm was originally taken from NDK's support library - I wonder if statically linking it would be acceptable.

@modocache
Copy link
Member Author

Does this mean we can't run on Android 4.4 and below? That's like half the Android devices out there

Yeah... I'm aware of the tradeoff, but I think it's the right one to make. Sending a pull request for the work we have here could benefit the greater community. We could then try and support Android 4.4 and below as a future improvement. Making this change now doesn't prevent that work from being done in the future.

modocache referenced this pull request Feb 20, 2016
Android NDK version 21 includes log2 and getline, two dependencies
whose licences prevented us from upstreaming the Android fork.
Update to 21 in order to resolve these dependency issues.
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