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
[ccache] New source archives for ccache 3.5.1 are now available
The ccache 3.5.1 release archives announced yesterday unfortunately included an incorrectly generated configure script, so they have been pulled. Fixed source archives are available here: https://www.samba.org/ftp/ccache/ccache-3.5.1a.tar.bz2 https://www.samba.org/ftp/ccache/ccache-3.5.1a.tar.gz https://www.samba.org/ftp/ccache/ccache-3.5.1a.tar.xz The source archives have been signed with my OpenPGP key (ID 5594ADB8, fingerprint 5A93 9A71 A467 92CF 5786 6A51 996D DA07 5594 ADB8): https://www.samba.org/ftp/ccache/ccache-3.5.1a.tar.bz2.asc https://www.samba.org/ftp/ccache/ccache-3.5.1a.tar.gz.asc https://www.samba.org/ftp/ccache/ccache-3.5.1a.tar.xz.asc -- Joel ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache
[ccache] Help with adding support to custom language
Hi all, I am new to ccache world and I would appreciate if anyone could provide me with a few suggestions and directions. 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? Thank you, Andre Calfa ___ ccache mailing list ccache@lists.samba.org https://lists.samba.org/mailman/listinfo/ccache