Génère un cache après une première compilation. La première compilation est donc plus lente. Les suivantes sont plus rapides. Revoir entièrement la procédure. Le site web a changé https://github.com/ccache/ccache. [[https://github.com/frerich/clcache|Site Web]] {{ :prog:clcache:clcache-master-2019-09-05.zip |Archive logiciel 05/09/2019}} ====Installation==== [[https://github.com/frerich/clcache/wiki/Installation|Installation]] {{ :prog:clcache:installation_frerich_clcache_wiki_github_2019-12-23_19_24_15_.html |Archive du 29/05/2019 le 23/12/2019}} pip install git+https://github.com/frerich/clcache.git ====Intégration==== [[https://github.com/frerich/clcache/wiki/Integration|Intégration à Visual Studio]] {{ :prog:clcache:integration_frerich_clcache_wiki_github_2019-12-23_19_24_23_.html |Archive du 22/09/2018 le 23/12/2019}} Lancer une compilation normale, utiliser le gestionnaire de tâches pour trouver le chemin vers le cl.exe qui est exécuté. Dans mon cas : ''C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64'' * Rename ''cl.exe'' to e.g. ''cl_original.exe'' * Rename ''cl.exe.config'' to e.g. ''cl_original.exe.config'' * Copy the generated ''clcache.exe'' file to ''cl.exe'' * Copy the generated ''clcache-script.py'' file to ''cl-script.py'' * Set ''CLCACHE_CL'' environment variable to point to ''C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl_original.exe''. * Set ''CLCACHE_DIR'' to ''c:\clcache'' * Set ''CLCACHE_DISABLE'' to ''1'' to disable the cache * Exec clcache -M 100000000000 La taille par défaut de 1Go n'est pas du tout adaptée à des gros projets. ====Conclusion==== Je ne l'ai pas utilisé (05/09/2019) à cause des bugs [[https://github.com/frerich/clcache/issues/357|Visual Studio IDE w/ CMake w/ clcache always rebuilds]] et [[https://github.com/frerich/clcache/issues/342|PermissionError: [WinError 5] Access is denied if using build multithreads > 3]]