Android.mk - what toolchain used by default?

三世轮回 提交于 2020-01-17 12:26:30

问题


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


回答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


来源:https://stackoverflow.com/questions/29396637/android-mk-what-toolchain-used-by-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!