[distcc] distcc #line pathnames patch

Tim Janik timj at gtk.org
Thu Feb 20 21:13:43 GMT 2003

On Thu, 20 Feb 2003, Marcus Gruendler wrote:

> Tim Janik wrote:

> > distcc #line pathnames patch
> > ----------------------------
> > Available at:
> > 	http://www.gtk.org/~timj/patches/distcc-line3.diff
> > This patch against distcc alters #line directives to use only
> > absolute pathnames. This fixes source file references in compiled
> > object code, enabling gdb to correctly locate source files during
> > debugging sessions.
> >
> On the other hand, this behaviour leads to the fact that ccache can not
> cache the compilation when different users compile the same project in
> their home directories. When the compilation actually would use only
> relative pathnames, ccache could cache the compilation without any
> problem.
> But I suppose not all desirable things are possible in the world ;-)

about the only thing that could fix up relative pathnames would be
a compiler patch that lets code insert directives (distcc in the
preprocessed output or via an option) to set the compilers pwd as
its added to the compiled object code. but still, that'd be
non-portable (acros different compilers) and only work from a
specific gcc version upwards.

> > PS: i'm not subscribed to the distcc mailing, so please Cc: me if you
> >     mean to reach me.
> >
> > ---
> > ciaoTJ


More information about the distcc mailing list