xcode 分布式编译

来源:互联网 发布:嵌入式软件开发怎么样 编辑:程序博客网 时间:2024/05/21 23:34

看到 xcode 的设置里有一个 Distributed Builds. 今天晚上打算试试. 先 google. 找到了两片文章:

 

http://www.algorithm.com.au/blog/files/xcode-distributed-builds-performance.php

Xcode Distributed Builds Performance

http://distcc.samba.org/faq.html

distcc frequently asked questions

 

第一篇里提到, 分布式编译带来的好处不大. 

第二篇有这么一句:

Apple's Xcode development kit includes a fork of an old verison of distcc, plus Apple patches to locate machines using Rendezvous and a small GUI to configure it.

The source is available from opensource.apple.com.

 

自己试了试, 找了三个机器打开了这个选项, 在其中一台上编译的时候, 发现分布式编译起作用了. 但速度一般. 可能是我的项目不够大. 在我测试第二个项目的时候出现问题. 编译不过. 说一个 progma 无效. 去掉分布式编译, 则没有问题.

 

看来 apple 用的这个旧版本的 distcc 还有些 bug 啊.