Skip to content

std_detect: Do not use libc::getauxval on 32-bit Android #1421

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 2 commits into from
Apr 24, 2023

Conversation

taiki-e
Copy link
Member

@taiki-e taiki-e commented Apr 24, 2023

This fixes the build error in rust-lang/rust#110285 (comment).

In #1406 I checked only aarch64 android and missed the fact that libc crate does not provide getauxval on 32-bit android (although I believe android provides getauxval on these targets). Sorry.

The second commit in this PR adds a job to CI that builds non-Linux targets that are not currently tested in CI to prevent such an oversight from occurring again in the future.

libc crate currently doesn't provide it.
@rustbot
Copy link
Collaborator

rustbot commented Apr 24, 2023

r? @Amanieu

(rustbot has picked a reviewer for you, use r? to override)

@taiki-e taiki-e force-pushed the android-getauxval branch from 8f48850 to e2b3cd1 Compare April 24, 2023 13:38
Copy link
Contributor

@lu-zero lu-zero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me

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.

4 participants