Skip to content Skip to sidebar Skip to footer

Android.mk - What Toolchain Used By Default?

What toolchain used by default when compile through Android.mk ? And how change the toolchain ?

Solution 1:

The default toolchain was gcc-4.6 for a long time. It has changed to gcc-4.8 in the NDK r10d version (currently the latest version).

You can choose to use another toolchain through modifying the NDK_TOOLCHAIN_VERSION variable, throughndk-build call (example: ndk-build NDK_TOOLCHAIN_VERSION=clang3.4, or by setting it inside Application.mk file. Example:

NDK_TOOLCHAIN_VERSION := clang3.4

Post a Comment for "Android.mk - What Toolchain Used By Default?"