Android.mk-默认使用什么工具链? [英] Android.mk - what toolchain used by default?

查看:180
本文介绍了Android.mk-默认使用什么工具链?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过Android.mk进行编译时,默认使用哪些工具链?以及如何更改工具链?

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

推荐答案

长期以来,默认工具链为 gcc-4.6 .在NDK r10d 版本(当前为最新版本)中,它已更改为 gcc-4.8 .

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).

您可以通过调用 ndk-build 来修改 NDK_TOOLCHAIN_VERSION 变量来选择使用其他工具链(例如: ndk-build NDK_TOOLCHAIN_VERSION = clang3.4 ,或将其设置在 Application.mk 文件中.例如:

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

这篇关于Android.mk-默认使用什么工具链?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆