STR:
- Create two identical source files with a different name. Empty files will do:
touch foo.c bar.c
- Compile them both:
sccache gcc -o foo.o -c foo.c -MD -MF foo.deps ; sccache gcc -o bar.o -c bar.c -MD -MF bar.deps
- Look at the contents of
bar.deps. It contains foo.o: foo.c /usr/include/stdc-predef.h instead of bar.o: bar.c /usr/include/stdc-predef.h.
Ironically, the preprocessor outputs a proper bar.deps as it's supposed to, but sccache overwrites it. That last part must be a recent-ish change.