cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

use `ccache` for MSBuild builds

Open firewave opened this issue 3 years ago • 3 comments

firewave avatar Jan 12 '23 16:01 firewave

I only used ccache for the Release build at the moment since they take longer.

This job should only contain the Debug build and the release should only be build via release-windows.yml. That will be done later on when we start sharing between the workflows.

firewave avatar Jan 12 '23 16:01 firewave

The suggested Visual Studio from ccache: https://github.com/ccache/ccache/wiki/MS-Visual-Studio#usage-with-visual-studio The documentation of the custom targets: https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-your-build?view=vs-2022#customize-c-builds

firewave avatar Jan 19 '23 11:01 firewave

Disabling the precompiled headers makes the build slower so it might not be feasible to use ccache after all. This might apply to compiling the files separately as well. Needs more testing.

firewave avatar Jan 19 '23 11:01 firewave