Re: [ccache] Help with adding support to custom language
On Thu, 3 Jan 2019 at 23:02, Andre Calfa wrote: > One of the motivations is that our current compiler cache is only supported > locally for each build server. In some cases the compilation of a single > input file takes a long time due to its size, and we cannot avoid its > compilation when the correct cached cpp and h are located in a different > build server. So if we can take advantage of using a distributed approach > which ccache supports, that would be great. No, ccache does not support distributed compilation, unless you use a cache directory shared over the network (e.g. using NFS), which I assume you could use for your compiler cache as well. Are you thinking about sccache, distcc or Icecream? > Unfortunately our compiler is not GCC like, as our flags are not analogous to > the GCC ones. I am guessing this would require lots of changes in ccache code > to make it work then? Yes, to the point that it will be an almost completely different program. -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
Re: [ccache] Help with adding support to custom language
Hi Joel, Thank you for your reply. > > What problems do you see with your own compiler cache that makes you > consider > using ccache instead? > One of the motivations is that our current compiler cache is only supported locally for each build server. In some cases the compilation of a single input file takes a long time due to its size, and we cannot avoid its compilation when the correct cached cpp and h are located in a different build server. So if we can take advantage of using a distributed approach which ccache supports, that would be great. > > Does your compiler behave similar to GCC, for instance using "-c" for > compilation, "-E" for generating preprocessed output similar to that of > GCC, > "-x" for selecting source language, etc? If not, my guess is that it's not > really feasible. > Unfortunately our compiler is not GCC like, as our flags are not analogous to the GCC ones. I am guessing this would require lots of changes in ccache code to make it work then? ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
Re: [ccache] Help with adding support to custom language
Hi Andre, On Thu, 3 Jan 2019 at 20:39, Andre Calfa via ccache wrote: > We currently have our own compiler cache for the compiler we developed, but > we would like to switch to ccache if possible. Our compiler takes as input > a custom language and generates both a .cpp file and a .h file. I would > like to know if it would be feasible for me to work on applying a patch to > ccache so that I can use ccache for this compiler, and if so, would there > be any documentation/example that I should follow to get this implemented? What problems do you see with your own compiler cache that makes you consider using ccache instead? Does your compiler behave similar to GCC, for instance using "-c" for compilation, "-E" for generating preprocessed output similar to that of GCC, "-x" for selecting source language, etc? If not, my guess is that it's not really feasible. There is no documentation or examples for adding new compiler support to ccache, mainly because ccache in a sense only supports one ("GCC and compilers that behave similar enough"). -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache