I think that it makes sense to do a major version bump because of the
C++11 requirement and major changes like introduction of result files,
zstd compression and BLAKE2b hashing.
+
* If the resulting file is modified, the file in the cache will also be
modified since they share content, which corrupts the cache entry. As of
- version 3.8, ccache performs a simple integrity check for cached files by
+ version 4.0, ccache performs a simple integrity check for cached files by
verifying that their sizes are correct. This means that mistakes like `strip
file.o` or `echo >file.o` will be detected, but a modification that doesn't
change the file size will not.
// ===============
//
// 1: Introduced in ccache 3.0. (Files are always compressed with gzip.)
-// 2: Introduced in ccache 3.8.
+// 2: Introduced in ccache 4.0.
const char MANIFEST_MAGIC[4] = {'c', 'C', 'm', 'F'};
static const uint32_t MAX_MANIFEST_ENTRIES = 100;
// Version history
// ===============
//
-// 1: Introduced in ccache 3.8.
+// 1: Introduced in ccache 4.0.
extern const struct conf* conf;
extern char* stats_file;