Skip to content

Instantly share code, notes, and snippets.

@extrawurst
Last active October 12, 2020 19:32
Show Gist options
  • Save extrawurst/3e0ad8bc967e70c0e04aefdec3172c45 to your computer and use it in GitHub Desktop.
Save extrawurst/3e0ad8bc967e70c0e04aefdec3172c45 to your computer and use it in GitHub Desktop.
.cargo/config for android linking (see also https://gist.github.com/extrawurst/ae3fd3ef152a878acfdc860db025e886)
[target.armv7-linux-androideabi]
linker = "/NDK/arm/bin/arm-linux-androideabi-clang"
[target.aarch64-linux-android]
linker = "/NDK/arm64/bin/aarch64-linux-android-clang"
[target.i686-linux-android]
linker = "/NDK/x86/bin/i686-linux-android-clang"
[target.x86_64-linux-android]
linker = "/NDK/x86/bin/x86_64-linux-android-clang"
@ufoot
Copy link

ufoot commented Oct 12, 2020

Indeed, super useful to cross-compile.

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