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

Make it compile for Android x86 (i686) #115

Merged
merged 1 commit into from Mar 29, 2017
Merged

Conversation

@vmx
Copy link
Contributor

vmx commented Mar 28, 2017

For Android x86 the ANDROID_NDK environment variable isn't passed
on correctly. Without this change it's not possible to compile the
mozjs_sys crate for Android x86, it would fail with:

Reexecuting in the virtualenv
checking for a shell... /bin/sh
checking for host system type... x86_64-pc-linux-gnu
checking for target system type... i686-pc-linux-android
checking for the Android toolchain directory... not found
...
configure: error: not found. Please check your NDK. With the current configuration, it should be in /platforms/android-9/arch-x86

With this change it's possible to compile it successfully for Android
x86 with:

PATH=$PATH:<x86-toolchain>/bin ANDROID_NDK=<android-ndk-r12b> cargo build --target i686-linux-android --verbose

This change is Reviewable

For Android x86 the `ANDROID_NDK` environment variable isn't passed
on correctly. Without this change it's not possible to compile the
`mozjs_sys` crate for Android x86, it would fail with:

    Reexecuting in the virtualenv
    checking for a shell... /bin/sh
    checking for host system type... x86_64-pc-linux-gnu
    checking for target system type... i686-pc-linux-android
    checking for the Android toolchain directory... not found
    ...
    configure: error: not found. Please check your NDK. With the current configuration, it should be in /platforms/android-9/arch-x86

With this change it's possible to compile it successfully for Android
x86 with:

    PATH=$PATH:<x86-toolchain>/bin ANDROID_NDK=<android-ndk-r12b> cargo build --target i686-linux-android --verbose
@mbrubeck
Copy link
Contributor

mbrubeck commented Mar 28, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Mar 28, 2017

📌 Commit 27acc39 has been approved by mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Mar 28, 2017

Testing commit 27acc39 with merge 98c3df6...

bors-servo added a commit that referenced this pull request Mar 28, 2017
Make it compile for Android x86 (i686)

For Android x86 the `ANDROID_NDK` environment variable isn't passed
on correctly. Without this change it's not possible to compile the
`mozjs_sys` crate for Android x86, it would fail with:

    Reexecuting in the virtualenv
    checking for a shell... /bin/sh
    checking for host system type... x86_64-pc-linux-gnu
    checking for target system type... i686-pc-linux-android
    checking for the Android toolchain directory... not found
    ...
    configure: error: not found. Please check your NDK. With the current configuration, it should be in /platforms/android-9/arch-x86

With this change it's possible to compile it successfully for Android
x86 with:

    PATH=$PATH:<x86-toolchain>/bin ANDROID_NDK=<android-ndk-r12b> cargo build --target i686-linux-android --verbose

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/115)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Mar 29, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: mbrubeck
Pushing 98c3df6 to master...

@bors-servo bors-servo merged commit 27acc39 into servo:master Mar 29, 2017
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@vmx vmx deleted the vmx:android-x86 branch Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.