Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup ccache for better workflow with multiple branches #275

Open
Fuco1 opened this issue Jul 28, 2017 · 2 comments
Open

Setup ccache for better workflow with multiple branches #275

Fuco1 opened this issue Jul 28, 2017 · 2 comments

Comments

@Fuco1
Copy link
Contributor

Fuco1 commented Jul 28, 2017

In the wake of the humongous branches I think it would be a good idea to keep them smaller and more contained.

One problem that I often face is that it takes a lot of time recompiling everything when switching branches. There's a solution called ccache among others that can cache the compilation results and speed up the process significantly.

Here's an article on how to set it up with regular configure/makefile setup: http://jsteemann.github.io/blog/2015/02/07/using-ccache-when-working-with-different-branches/

I don't know where the compile commands are set in cmake but all that has to be done is basically invoke ccache g++ instead of g++.

@wheybags
Copy link
Owner

Looks like this is a pretty simple one-liner: https://stackoverflow.com/a/37828605

@wheybags
Copy link
Owner

It would also be nice to have https://github.com/frerich/clcache for windows too, and especially if we could use both ccache and clcache on travis/appveyor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants