Skip to content

Instantly share code, notes, and snippets.

@brson
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brson/10080561 to your computer and use it in GitHub Desktop.
Save brson/10080561 to your computer and use it in GitHub Desktop.

First run configure

../configure --target-triples=arm-linux-androideabi --android-cross-path=/dev/ndk_standalone/ --android-ndk-path=/dev/android-ndk-r9b/ --android-sdk-path=~/dev/adt-bundle-linux-x86_64-20131030/sdk/

Then build rustc (without explicitly setting --target - the build system does this itself)

make /home/brian/dev/servo/build/arm-linux-androideabi/src/compiler/rust/x86_64-unknown-linux-gnu/stage2/bin/rustc

Then build the rest of servo using the correct rustc flags

make VERBOSE=1 CFG_RUSTC_FLAGS="--target=arm-linux-androideabi -C android-cross-path=/home/brian/dev/ndk_standalone"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment