Skip to content

Instantly share code, notes, and snippets.

@gubatron
Last active May 11, 2019 03:38
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 gubatron/191a80dde6bc65fc2334600b6cda50cc to your computer and use it in GitHub Desktop.
Save gubatron/191a80dde6bc65fc2334600b6cda50cc to your computer and use it in GitHub Desktop.
NDK architectures, toolsets and toolchains

Android

x86

  • CC=$ANDROID_TOOLCHAIN/bin/i686-linux-android-clang
  • linux-elf
  • toolset=clang-x86

x86_64

  • CC=$ANDROID_TOOLCHAIN/bin/x86_64-linux-android-clang;
  • linux-x86_64
  • toolset=clang-x86_64

arm

  • CC=$ANDROID_TOOLCHAIN/bin/arm-linux-androideabi-clang;
  • linux-armv4
  • -march=armv7-a
  • toolset=clang-linux-arm

arm64

  • CC=$ANDROID_TOOLCHAIN/bin/aarch64-linux-android-clang;
  • linux-aarch64
  • -march=armv8-a+crypto
  • toolset=clang-arm64

Windows

x86

  • CC=i686-w64-mingw32-gcc-posix;
  • mingw
  • toolset=gcc-x86

x86_64

  • CC=x86_64-w64-mingw32-gcc-posix
  • mingw64
  • toolset=gcc-x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment