Closed modocache closed 8 years ago
I'll add a test that uses log2
, then mark it as XFAIL
for Android.
Actually, we may be able to get log2
by updating the Android NDK version we use. That sounds like the better approach!
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.
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.
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
instdlib/public/core/BuiltinMath.swift,gyb
. Conditionally remove that reference by passing an additional parameter to the gyb template.