-
Notifications
You must be signed in to change notification settings - Fork 33
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
Use ccache in FWBuild server? #27
Comments
me too, so i always keep a close eye on the speed of incremental builds, at least local ones. |
What is incremental build? How do i tell if i use it or not?
I use |
incremental means we only build sources that changed, or if header changed, sources depending on that header. this is how it's supposed to be. first clean build - about 1.5 mins:
incremental build with no changes - 7s:
incremental build with 1 file changed:
no, it runs
this is not right. does build directory get wiped between builds or something? |
Hello,
i frequently build mongoose firmware with small changes. Do you think it would be possible to integrate ccache to mongoose FWBuild? From my experience it provides HUGE compiler speedup in cases where you have C/C++ project with lots of files and change only few of them between builds. I've been using it for Linux kernel builds, Firefox, FreeCAD and stuff like that. It saved me unbeleivable amount of time during these builds...
It hashes gcc commandline and source files and uses it as key to cache builds. So everytime you run gcc with same source code and arguments, it retruns cached output files rather than building them again.
Obviously this would need some kind of persistent storage mounted into docker container to keep the cached files across the builds.
https://ccache.dev/
https://github.com/ccache/ccache
The text was updated successfully, but these errors were encountered: