On 2010-07-10 08:27, Ramiro Polla wrote:
> Using Intel's C++ compiler[1] with ccache generates bad dependency
> files. Instead of taking the proper dependency file generated by the
> preprocessor, it takes a second dependency file generated by the
> compiler using the temporary .i file (which is listed as the only
> dependency). For example:
> $ echo > test.c
> $ ia32-icc -o test.o -MMD -c test.c
> $ cat test.d
> test.o: test.c
> $ ccache ia32-icc -o test.o -MMD -c test.c
> $ cat test.d
> test.o: /export/ramiro/.ccache/tmp/test.tmp.entropy.9165.i
> [...]
> The dependency file generated by the preprocessor (the one in line
> "Preprocessor created test.d") is correct. Is it not possible to keep
> that dependency file instead, and possibly also remove the -MMD & co
> arguments from "Running real compiler"?

I see. Yes, I think that taking it from the preprocessor would work out
fine. As you note, it will require some changes in how -MMD and friends
are handled. I'll look into it.

-- Joel
_______________________________________________
ccache mailing list
ccache@lists.samba.org
https://lists.samba.org/mailman/listinfo/ccache

Reply via email to