# 编译时的缓存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 查看当前编译状况
阅读(690) | 评论(0) | 转发(0) |