Re: [ccache] Multiple directories for CCACHE_DIR?

2016-05-17 Thread Anders Björklund
Joel Rosdahl wrote: >> If not, would be a good idea to implement that? > > I think that it could be interesting to investigate, but there are lots of > things to think about before implementing it. For instance: > > What should happen on a cache miss? Should ccache store the result in all >

Re: [ccache] Multiple directories for CCACHE_DIR?

2016-05-17 Thread Anders Björklund
Wilson Hong wrote: > Hi ccache, I am trying to improve ccache build performance by > improving cache hit rate. One thing I wanna try is to have multiple > folders specified in CCACHE_DIR. Where first level is local cache, > and second level in LAN NFS, third level on AWS s3. Ccache will start >

Re: [ccache] preprocessor mode

2016-05-17 Thread Joel Rosdahl
Hi Yoav, > I've dug a bit deeper, and found that when doing a diff between the output > of the preprocessor the resolved include path is emitted as part of the > output as a comment, in our case it's > > # 1 "a/a.h" 1 > > There's a flag -P to the preprocessor to remove these comments. It sounds

[ccache] Multiple directories for CCACHE_DIR?

2016-05-17 Thread Wilson Hong
Hi ccache, I am trying to improve ccache build performance by improving cache hit rate. One thing I wanna try is to have multiple folders specified in CCACHE_DIR. Where first level is local cache, and second level in LAN NFS, third level on AWS s3. Ccache will start looking for local ccache