speedup will be higher when I/O is fast (e.g., when files are in the disk
cache). The direct mode can be disabled by setting CCACHE_NODIRECT.
- - When hashing the output from the preprocessor, absolute paths for which the
- path specified by CCACHE_BASEDIR is a prefix are rewritten to relative.
- Paths specified by -I and similar flags get the same treatment. This is
- done to get cache hits even when compiling with -g and when using absolute
- include directory paths. Absolute paths in the standard error text will
- also be more accurate. CCACHE_BASEDIR defaults to the current working
- directory.
+ - When hashing the output from the preprocessor, absolute paths are rewritten
+ to relative paths, but only for paths under the directory specified by
+ CCACHE_BASEDIR. Paths specified by -I and similar options get the same
+ treatment. This is done to get cache hits even when compiling with -g and
+ when using absolute include directory paths. Absolute paths in the standard
+ error text will also be more accurate. The default value of CCACHE_BASEDIR
+ is the current working directory. To disable the rewriting, set
+ CCACHE_BASEDIR to the empty string.
- Object files are now by default stored compressed in the cache. The runtime
cost is negligible, and more files will fit in the ccache directory and in
startdit()
+dit(bf(CCACHE_BASEDIR)) When hashing the output from the preprocessor,
+absolute paths are rewritten to relative paths, but only for paths
+under the directory specified by CCACHE_BASEDIR. Paths specified by -I
+and similar options get the same treatment. This is done to get cache
+hits even when compiling with -g and when using absolute include
+directory paths. The default value of CCACHE_BASEDIR is the current
+working directory. To disable the rewriting, set CCACHE_BASEDIR to the
+empty string.
+
dit(bf(CCACHE_CC)) You can optionally set CCACHE_CC to force the name
of the compiler to use. If you don't do this then ccache works it out
from the command line.