Setting ccache stats log file path on same line as --show-log-stats on Windows - Stack Overflow

admin2025-04-18  3

Is there any way to set the location of the stats log file so that it's only valid for a single call to ccache --show-log-stats -v?

Some things I have tried:

CCACHE_STATSLOG=<path to file> ccache --show-log-stats -v

which works on Unix, but not on Windows.

ccache stats_log=<path to file> --show-log-stats -v

which results in the following error: ccache: error: Could not find compiler "--show-log-stats" in PATH

I know it's possible to set an environment variable or create a configuration file and store the option there, but this is part of a build script with several build commands that use different stats files.

转载请注明原文地址:http://anycun.com/QandA/1744955143a89985.html