[ccache] Using WindRiver Diab C++ v5.0 compiler with ccache
martinpool at gmail.com
Thu Oct 6 01:05:47 GMT 2005
On 05/10/05, euphoria at arcor.de <euphoria at arcor.de> wrote:
> thanks to ccache developers for such a great tool!
> Unfortunately I ran into problems.
> I was wondering whether someone has successfully applied ccache to WindRiver's Diab C++ compiler (dplus). Its syntax is quite similar to gcc.
> I see a lot of "preprocessor errors" in ccache statistics. However I don't see any from Diab stdout during build.
> We use the omake build system. The appropriate makefile contains the following entry for .cpp:
> $(CC) $(CFLAGS) $(INC_DIR) -o $(.TARGET) $(.SOURCE)
> I modified that line to:
> $(CC) $(CFLAGS) $(INC_DIR) -o $(.TARGET) -c $(.SOURCE)
> ...in order to get hit by ccache. Otherwise I only get "called for link" counts in ccache statistics.
> I also tried to define CCACHE_CPP2 with no differences in the end.
> Perhaps it's just a problem in the makefile since a manual call of e.g. "ccache dplus -c main.cpp -o main.o" works and generates ccache hits on succeeding calls.
> Using ccache v2.2 on CYGWIN_NT-5.1
The next step would be to work out with what parameters it is invoking
the preprocessor (maybe it's in the log?) and see if that works
properly when run in isolation.
More information about the ccache