Re: [ccache] Path rewriting in ccache make_relative_path - realpath conversion and its necessity

2016-01-12 Thread vkr
free(relpath); free(option); continue; } That inserted in ccache.c should solve the problem. Please comment on this also. regards, venkat. On Tue, Jan 12, 2016 at 3:05 PM, vkr wrote: > Hello, > I've

[ccache] Path rewriting in ccache make_relative_path - realpath conversion and its necessity

2016-01-12 Thread vkr
Hello, I've a question around the function `make_relative_path()' that rewrites the given path to its relative path, and while doing so, it converts the given path to the realpath, and then returns the relative path for the realpath based on the current working directory. I was wondering why it wa

Re: [ccache] ccacje direct mode without fall back to running the preprocessor

2015-12-10 Thread vkr
ly && !conf->read_only_direct)) { Or even better, if put_file_in_cache returns if we are in read-only/read-only-direct mode, which should fix more such hidden cases, in future. What do you think? Which one is better? regards, Venkat. On Thu, Dec 10, 2015 at 6:00 PM, Andre

Re: [ccache] ccacje direct mode without fall back to running the preprocessor

2015-12-09 Thread vkr
e lookup using the preprocessor mode? WiIl I just have additional overhead when the next direct-look up runs? I guess this is the only drawback. regards, Venkat. On Fri, Sep 5, 2014 at 1:51 AM, Andrew Stubbs wrote: > On 04/09/14 08:32, vkr wrote:> I would like to know if I can avoid &

[ccache] Implementing a Read-only HTTP CCACHE_DIR(resurrect)

2015-11-18 Thread vkr
Hello, I stumbled across this thread - https://lists.samba.org/archive/ccache/2012q2/000879.html which is years old, Coincidentally, I did some work along similar lines already, without realizing there was this discussion about this topic here, and I appreciate some comments/suggestions on my appro

[ccache] @file arguments to ccache - Intel Compiler

2015-10-17 Thread vkr
Hello, I was wondering why in ccache we are expanding @file https://github.com/venkrao/ccache-1/blob/59e5244dd79b0fc7df682c8f3c05b778a3d00f91/ccache.c#L1951 Essentially, the arguments that are to be listed in @file are those that affect the preprocessor. Is it safe to just not expand the arguments

[ccache] -Bprefix compiler option - resulting in cache miss

2015-09-11 Thread vkr
Hello, I believe I found a potential bug with ccache that results in cache-miss if -Bprfix compilation option is used, where prefix specifies where to find the executables, libraries, include files, and data files of the compiler itself. Example, if my compilation command is: CCACHE_BASEDIR=$PWD c

Re: [ccache] ccacje direct mode without fall back to running the preprocessor

2014-09-16 Thread vkr
in the config file on master)? > > -- Joel > > > On 10 September 2014 09:57, Andrew Stubbs wrote: >> >> On 10/09/14 08:24, vkr wrote: >>> >>> Why is that? I mean, when drop preprocessing only when an env variable is >>> set, >>> why is

Re: [ccache] ccacje direct mode without fall back to running the preprocessor

2014-09-10 Thread vkr
ubbs wrote: > On 08/09/14 11:37, vkr wrote: >> >> If the env variable TRS_CCACHE_NO_PREPROCESSOR_ON_DIRECT_LOOKUP_MISS is >> set >> then, I do not run preprocessing, but just fall back to running >> real-compiler. >> >> I see a lot of time saving, and I

Re: [ccache] ccacje direct mode without fall back to running the preprocessor

2014-09-08 Thread vkr
} + } + /* * Find the hash using the preprocessed output. Also updates * included_files. On Fri, Sep 5, 2014 at 2:51 PM, vkr wrote: > Hello > First of all, sorry about the typo in the subject/title of my post. > > I run ccache in read-only mode itself. But, I still se

Re: [ccache] ccacje direct mode without fall back to running the preprocessor

2014-09-05 Thread vkr
gards, venkrao On Fri, Sep 5, 2014 at 1:51 AM, Andrew Stubbs wrote: > On 04/09/14 08:32, vkr wrote:> I would like to know if I can avoid >> "If there is no match, ccache falls back to running the preprocessor." > > The answer is "no", because it is necessary

[ccache] ccacje direct mode without fall back to running the preprocessor

2014-09-04 Thread vkr
Hello The documentation about "direct mode" says: The current contents of the include files are then hashed and compared to the information in the manifest. If there is a match, ccache knows the result of the compilation. If there is no match, ccache falls back to running the preprocessor. The out