Clear the entire cache, removing all cached files, but keeping the
configuration file.
+*`--config-path`* _PATH_::
+
+ Let the subsequent command line options operate on configuration file
+ _PATH_ instead of the default. Using this option has the same effect as
+ setting the environment variable `CCACHE_CONFIGPATH` temporarily.
+
*`-d`*, *`--directory`* _PATH_::
Let the subsequent command line options operate on cache directory _PATH_
- instead of the default for. For example, to show statistics for a cache
+ instead of the default. For example, to show statistics for a cache
directory at `/shared/ccache` you can run `ccache -d /shared/ccache -s`.
Using this option has the same effect as setting the environment variable
`CCACHE_DIR` temporarily.
(normally not needed as this is done
automatically)
-C, --clear clear the cache completely (except configuration)
+ --config-path PATH operate on configuration file PATH instead of the
+ default
-d, --directory PATH operate on cache directory PATH instead of the
default
--evict-older-than AGE remove files older than AGE (unsigned integer
{
enum longopts {
CHECKSUM_FILE,
+ CONFIG_PATH,
DUMP_MANIFEST,
DUMP_RESULT,
EVICT_OLDER_THAN,
{"checksum-file", required_argument, nullptr, CHECKSUM_FILE},
{"cleanup", no_argument, nullptr, 'c'},
{"clear", no_argument, nullptr, 'C'},
- {"directory", no_argument, nullptr, 'd'},
+ {"config-path", required_argument, nullptr, CONFIG_PATH},
+ {"directory", required_argument, nullptr, 'd'},
{"dump-manifest", required_argument, nullptr, DUMP_MANIFEST},
{"dump-result", required_argument, nullptr, DUMP_RESULT},
{"evict-older-than", required_argument, nullptr, EVICT_OLDER_THAN},
break;
}
+ case CONFIG_PATH:
+ Util::setenv("CCACHE_CONFIGPATH", arg);
+ break;
+
case DUMP_MANIFEST:
return Manifest::dump(arg, stdout) ? 0 : 1;