I'd like to use ccache with icc/icpc 7.0 for Linux (ccache is a wonderful tool for minimizing compile times, e.g., for groups of developers that have a copy each of a common source tree!)
ccache generates an intermediary file using the -E option with a suffix .ii for C++ code. g++ automatically recognizes .ii files as C++ code while icpc does not. As a workaround, I pass -Kc++ to all icpc invocations.
cccache considers stdout output as a problem so that the compiled result should not be cached. With the options I use, the Intel compiler outputs "vectorization" and "automatic cpu dispatch" remarks on stdout. The vectorization message can be suppressed using "-vec_report0", but since the dispatch messages don't have a remark number, I haven't figured out a way to use -wd to suppress the messages.
I guess there is a simple solution but I haven't been able to find one yet! Ideas?