分布式编译 – 加速Android的编译(尚未解决)。

由于Android的代码量太大,所以,编译需要很久,都是以小时为单位的。多核处理器能加速编译,但是一旦把-j4加上,全速用四核进行编译,那么其他事情就做不了了,一切都变得很缓慢。鉴于这种情况,有同事建议采用分布式编译,并推荐了distcc和windows下的IncrediBuild

简单看了一下,加速编译是没有问题的,但是怎么用到Android的编译系统上,还有待考究。没有太多时间,暂时搁置吧。

About 王永杰

路漫漫其修远兮,吾将上下而求索
This entry was posted in Android, linux应用, 技术为本 and tagged , . Bookmark the permalink.

3 Responses to 分布式编译 – 加速Android的编译(尚未解决)。

  1. deli says:

    搜索找到这来了,楼主现在可有进展? 分享一下咯。

  2. 刘明 says:

    IncrediBuild我用过,需要修改make.exe和编译命令。感觉把非分布式改为分布式还算简单。但是,觉得Android或需要不好搞些,等楼主研究。

  3. 王永杰 says:

    目前来说还没有,主要是没有时间,而且公司对这方面需求还不是特别强烈。有机会再研究吧,不好意思,让你们失望了。

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>