Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
Can you guarantee that ccache will not fail when major changes are made to the code, and it won't carry over any state from old compilations?
If it won't then it's probably fine, but any type of caching adds opportunity for statefullness to creep in. The same build should be produced from fresh source as from the state in the buildserver.
Posts: 721
Threads: 77
Joined: Apr 2014
Thanks: 113
Given 130 thank(s) in 91 post(s)
02-05-2016, 09:38 PM
(This post was last modified: 02-06-2016, 04:22 AM by LogicParrot.)
I might roll out a temporary build server soon. It will be far less ambitious yours: Just one build type on one slave. I just want to tinker with Jenkins and learn it. I'll try it with ccache enabled and report back if this causes trouble.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
Well, if it's guaranteed by design I should try it out. It isn't too much effort to just enable it on one build.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
That build is not for the PR, it's from before the PR.
Before I got ccache, there was no error.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
I changed the compilers from "clang" to "ccache clang" and "clang++" to "ccache clang++".