[ccache] gcc -g and ccache

Konstantin Kivi konst at sirena2000.ru
Wed Apr 2 11:20:24 GMT 2008

Hi All

I have found that g++ (4.1 in my case)  with debug info flag (-g)
insert directory of the source file in preprocessor output (second line of
the example)

# 1 "helpcpp.cc"
# 1 "/home/konst/work/sirenalibs/string_bindOut//"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "helpcpp.cc"
# 1 "/usr/include/c++/4.1.3/locale" 1 3

This prevents ccache form working properly  if multiple source
trees are used.
Does anybody no the remedy for this problem?

Best regards, Konstantin

Sincerely yours, Konstantin Kivi <konst at sirena2000.ru>

More information about the ccache mailing list