Wener Notes

ccache

约 1 分钟阅读
  • 是什么?
    • 缓存编译单个文件 C/C++/Objective-C/Objective-C++
      • 不处理多文件编译和链接
    • 需要进行小修改然后重复编译的场景非常有用
  • man ccacheLinkccache.dev/manual/latest.html是什么? · 缓存编译单个文件 C/C++/Objective-C/Objective-C++ · 不处理多文件编译和链接 · 需要进行小修改然后重复编译的场景非常有用 · man ccache · /.ccache/ccache.conf笔记:ccache
bash
# 安装使用 - 通过包安装的一般会自己做这一步
cp ccache /usr/local/bin/
ln -s ccache /usr/local/bin/gcc
ln -s ccache /usr/local/bin/g++
ln -s ccache /usr/local/bin/cc
ln -s ccache /usr/local/bin/c++
bash
# 查看统计
# 默认配置 ~/.ccache/ccache.conf
ccache -s

配置

  • ~/.ccache/ccache.conf
  • /etc/ccache.conf
ini
# 缓存大小
max_size = 10.0G

关联信息

反向链接、本文链接的其他页面和外部资料。

References

其他外链1 条
最近更新commit a27d092Edit

On this page