ilw
ilw

Reputation: 2570

Android.mk - what toolchain used by default?

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

Upvotes: 0

Views: 903

Answers (1)

ph0b
ph0b

Reputation: 14473

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

Upvotes: 1

Related Questions