[ccache] improving ccache to work with debug symbols?

2011-02-28 Thread James Donald
For usage of ccache at our company, here is one of our biggest hassles today: even with the CCACHE_BASEDIR feature, users complain when gdb points to files that no longer exist. Independently, a couple of our engineers have proposed the following fix : 1. On a cache miss, generate preprocessor

Re: [ccache] Preprocessor stdout regression since v2.4

2011-02-28 Thread Mike Crowe
On 2011-02-15 13:51, Mike Crowe wrote: It might not be expected for cpp to be a symlink to ccache but with ccache-v2.4 it did used to work so I found it easier for our build system just to symlink everything in the toolchain directory to ccache. Unfortunately between v2.4 (Debian Lenny

Re: [ccache] improving ccache to work with debug symbols?

2011-02-28 Thread Wilson Snyder
For usage of ccache at our company, here is one of our biggest hassles today: even with the CCACHE_BASEDIR feature, users complain when gdb points to files that no longer exist. Independently, a couple of our engineers have proposed the following fix : 1. On a cache miss, generate

[ccache] [PATCH] Potentially produce better relative pathnames when symlinks are

2011-02-28 Thread Mike Crowe
When making relative pathnames try and do so both before and after calling realpath and pick the version that is the shortest. This helps if the build starts from a path that contains a symlink and a Makefile somewhere decides to use realpath to generate absolute paths. It might be cheaper to do