Re: [ccache] Help with adding support to custom language

2019-01-03 Thread Andre Calfa via ccache
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


[ccache] Help with adding support to custom language

2019-01-03 Thread Andre Calfa via ccache
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