ccache(“compiler cache”的缩写)是一个编译器缓存,该工具会高速缓存编译生成的信息,并在编译的特定部分使用高速缓存的信息, 比如头文件,这样就节省了通常使用 cpp 解析这些信息所需要的时间。如果您编译清单 2 中的文件,假定 foobar.h 中包含对其他头文件的引用,ccache 会用那个文件的 cpp-parsed 版本来 取代 include 声明。就那么简单。不是真正去读取、理解并解释其内容,ccache 只是 将最终的文本拷贝到文件中,使得它可以立即被编译。
ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again. Supported languages are C++, C++, ">Objective-C and Objective-C++.
Changes:
1. A work-around for a bug in.gzputc() in zlib 1.2.5 has been made.
2. Corrupt manifest files are now removed so that they won't block direct mode hits.
3. ccache now copes with file systems... that don't know about symbolic links.
4. The file handle is now correctly closed on write errors when trying to create a cache dir tag
Bug fixes:
·Made a work-around for a bug in gzputc() in zlib 1.2.5.
·Corrupt manifest files are now removed so that they won’t block direct mode hits.
·ccache now copes with file systems that don’t know about symbolic links.
·The file handle in now correctly closed on write error when trying to create a cache dir tag.
The latest stable release is 3.1.4:
ccache 3.1.4 source code (tar
.bz2) (Open
PGP signature) ccache 3.1.4 source code (tar.gz) (OpenPGP signature) ccache 3.1.4 source code (tar.xz) (OpenPGP signature)
The source archives are signed with Joel Rosdahl's OpenPGP key. To verify the integrity of a source archive, install the key, download the archive and the corresponding OpenPGP signature file and run gpg --verify file.asc.
Note that the releases above only are meant to be used when installing ccache. If you want to develop ccache, fix bugs, etc, you should check out the full source code from the repository instead.