Skip to content

std.Target: Introduce Abi.androideabi to distinguish the soft float case. #21504

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

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

alexrp
Copy link
Member

@alexrp alexrp commented Sep 24, 2024

Abi.android on its own is not enough to know whether soft float or hard float should be used. In the C world, androideabi is typically used for the soft float case, so let's go with that.

Note that Android doesn't have a hard float ABI for 32-bit Arm, so no androideabihf.

Closes #21488.

…ase.

Abi.android on its own is not enough to know whether soft float or hard float
should be used. In the C world, androideabi is typically used for the soft float
case, so let's go with that.

Note that Android doesn't have a hard float ABI, so no androideabihf.

Closes ziglang#21488.
@alexrp
Copy link
Member Author

alexrp commented Sep 24, 2024

@Beyley can you check if this fixes the problem for your project?

@Beyley
Copy link

Beyley commented Sep 25, 2024

Can confirm this fixes my issue, thanks!

Beyley added a commit to LittleBigRefresh/scetool that referenced this pull request Sep 25, 2024
Until ziglang/zig#21504 is merged, this wont work, but you can compile that fork to get a zig binary with the fix included until then.
@alexrp alexrp merged commit e0ac776 into ziglang:master Oct 2, 2024
10 checks passed
@alexrp alexrp deleted the android-softfp branch October 2, 2024 22:16
ehaas added a commit to ehaas/arocc that referenced this pull request Oct 4, 2024
ehaas added a commit to Vexu/arocc that referenced this pull request Oct 4, 2024
alexrp added a commit to alexrp/zig that referenced this pull request Oct 5, 2024
bernardassan pushed a commit to bernardassan/zig that referenced this pull request Oct 8, 2024
richerfu pushed a commit to richerfu/zig that referenced this pull request Oct 28, 2024
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.

hard float ABI passed to arm32 android compilations, which require softfp ABI
2 participants