Skip to content

use ccache for Linux gcc make CI builds#4411

Merged
danmar merged 4 commits intocppcheck-opensource:mainfrom
firewave:ccache-2
Sep 3, 2022
Merged

use ccache for Linux gcc make CI builds#4411
danmar merged 4 commits intocppcheck-opensource:mainfrom
firewave:ccache-2

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

@firewave firewave commented Aug 27, 2022

CMake builds currently don't work with it - possibly related to the matchcompiled files.

Windows support isn't straight-forward.

Macos I haven't looked into yet.

Support for custom compilers (i.e. clang) I haven't look into either.

@firewave firewave force-pushed the ccache-2 branch 2 times, most recently from 291e4cf to 3368a5a Compare August 28, 2022 07:48
@firewave firewave force-pushed the ccache-2 branch 4 times, most recently from 9f41605 to 88b2826 Compare August 29, 2022 21:33
@firewave firewave changed the title use ccache in more GitHub Actions use ccache for Linux make CI builds Aug 29, 2022
@firewave firewave changed the title use ccache for Linux make CI builds use ccache for Linux gcc make CI builds Aug 29, 2022
@firewave firewave force-pushed the ccache-2 branch 2 times, most recently from 0f744b5 to b3d9879 Compare August 29, 2022 22:03
@firewave firewave marked this pull request as ready for review September 2, 2022 14:35
@pfultz2
Copy link
Copy Markdown
Contributor

pfultz2 commented Sep 2, 2022

CMake builds currently don't work with it - possibly related to the matchcompiled files.

I use cmake with ccache with and without the matchcompiled files without a problem. Of course, I disable PCH though.

@firewave
Copy link
Copy Markdown
Collaborator Author

firewave commented Sep 2, 2022

CMake builds currently don't work with it - possibly related to the matchcompiled files.

I use cmake with ccache with and without the matchcompiled files without a problem. Of course, I disable PCH though.

Thanks for the insight.

It works with CMake. It seems matchcompiled and PCH are causing different issues. As seen in #4426 files depending on precompiled are just not being cached (with the default settings). I will take a look at these soon as I don't want to disable precompiled completely in the CI and also not introduce yet another build job.

@danmar danmar merged commit 070bae8 into cppcheck-opensource:main Sep 3, 2022
@firewave firewave deleted the ccache-2 branch September 3, 2022 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants