Skip to content
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

Fix cross compilation on android armv7 and x86 #186

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

fredszaq
Copy link
Contributor

@fredszaq fredszaq commented Oct 3, 2023

This fixes the following cmake errors

Android: Unknown processor CMAKE_SYSTEM_PROCESSOR='x86'.

and

Android: Unknown processor CMAKE_SYSTEM_PROCESSOR='arm'.

when crosscompiling for i686-linux-android and armv7-linux-androideabi android targets

fixes #175

This fixes the following cmake errors

```
Android: Unknown processor CMAKE_SYSTEM_PROCESSOR='x86'.
```
and

```
Android: Unknown processor CMAKE_SYSTEM_PROCESSOR='arm'.
```

when crosscompiling for `i686-linux-android` and `armv7-linux-androideabi`
 android targets

fixes rust-lang#175
@fredszaq
Copy link
Contributor Author

fredszaq commented Oct 3, 2023

the ci fails on mips crosscompile test as rustup can't download those targets that were retrogaded to tier 3 rust-lang/compiler-team#648

@FlorianDenis
Copy link
Contributor

I confirm this solves issues cross-compiling for Android, would love to see this merged

@MihirLuthra
Copy link

MihirLuthra commented Dec 26, 2023

Yes, this solves the issue (I can confirm for armv7-linux-androideabi)
@thomcc, pinging you since you seem to be an active reviewer of cmake-rs 🙂. Please ignore if this PR falls out of your scope.

@tgross35 tgross35 merged commit f84bd51 into rust-lang:master Aug 15, 2024
26 checks passed
@github-actions github-actions bot mentioned this pull request Aug 15, 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.

Android: Unknown processor CMAKE_SYSTEM_PROCESSOR=arm
4 participants