-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Android cross-compile on macOS: Fix for compile error addressed Float80 data type. #25502
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
Android cross-compile on macOS: Fix for compile error addressed Float80 data type. #25502
Conversation
…l architectures (i.e. Android Simulator).
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. |
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.
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. |
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 |
Build failed |
Seems like CI trying to build non-existing branch and this cause build failure :0 |
…80 data type. (swiftlang#25502) * Fixes issue addressed Float80 data type. Float80 is disabled for Intel architectures (i.e. Android Simulator). * More precise condition check.
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: