FreeBSD编译程序时的缓存ccache设置

2009-05-13 10:49:00来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

# 编译时的缓存CCACHE 它时为程序编译提供缓存 通过减少重复代码编译次数加快编译时间
# cd /usr/ports/devel/ccache/
# make install clean
# cd /usr/
# mkdir ccache
# cd /usr/sbin
# ln -s /usr/local/bin/ccache gcc
# ln -s /usr/local/bin/ccache cc
# ln -s /usr/local/bin/ccache c++
# ln -s /usr/local/bin/ccache g++
# ln -s /usr/local/bin/ccache cpp
# echo "setenv CCACHE_DIR /usr/ccache" >> /root/.cshrc
# rehash
# exit
# ccache -s 查看当前编译状况


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/11818/showart_427796.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:我的FreeBSD sysctl.conf

下一篇:我FreeBSD下的 mlterm 设置