CC: @stephentyrone
@swift-ci please smoke test
Note that @stephentyrone is wrong in that thread when he says "it appears to me that long double on Android is just an alias of double, even on x86." It may seem that way on 32-bit Android platforms, where double and long double are both 64-bit, even on x86, but on 64-bit Android, long double is 128-bit, even on x86_64.
Thanks!
I have started support for Float128 for Android AArch64, but I hit a couple road blocks, and I never finished. I think the only code I uploaded was https://github.com/drodriguez/swift/tree/integers-128 which is needed for some return value of Float128
. I have some commit or stash with work for the actual Float128
locally. I will see if I can find it, and upload it, so maybe someone can work on it.
@swift-ci please smoke test
Looks like we can merge this PR.
Thank you!
Note that @stephentyrone is wrong in that thread when he says "it appears to me that long double on Android is just an alias of double, even on x86." It may seem that way on 32-bit Android platforms, where double and long double are both 64-bit, even on x86, but on 64-bit Android, long double is 128-bit, even on x86_64.
That is a spectacularly bad choice, but I suppose they'll get to learn why in the fullness of time, and the reasons why it's a bad idea fortunately don't really impact Swift. In any event, it doesn't change the basic correctness of this patch; if/when the stdlib vends a Float128 type, we can import long double
as that on Android and arm64 Linux.
Build failed
Swift Test Linux Platform
Git Sha - 484bae6
Seems like CI trying to build non-existing branch and this cause build failure :0
Login to write a write a comment.
Swift forum discussion: https://forums.swift.org/t/android-crosscompilation-on-macos-is-swift-float80-support-really-needed-for-android-intel-x86-and-x86-64-targets/25835
This PR disables Float80 support for Android. This PR fixes compile error shown below: