Closed NicolasDorier closed 5 years ago
Solution:
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<CLToolExe>clcache.exe</CLToolExe>
<CLToolPath>C:\ProgramData\chocolatey\bin\</CLToolPath>
<NoDependencies>$(USERPROFILE)\clcache\stats.txt</NoDependencies>
</PropertyGroup>
</Project>
NoDependencies
makes sure that CL does not check the stats file.
Ping @frerich I think it can be nice to document this somewhere in the doc if you have time ;)
When rebuilding a project without ClCache without change, it takes 15 seconds, but with ClCache, several minutes.
The reason is that the CL task can be skipped if all inputs access time are inferior to outputs access time (using tlog under the hood).
When compiling with ClCache, here is my logs: