[ccache] preprocessing with -P
Maybe a better solution would be to remove lines with # when generating the hash, but to keep them when compiling Ciao again, Giulio Hello, verwirren I'm not sure, but If you are removing the path of include path in the preprocessed file - the debugger will be confused finding its source files - or what do you think? Mit freundlichen Gruessen best regards Heiko Elger ARBURG GmbH + Co Heiko Elger - Softwareentwicklung - / - Research and Development - Arthur-Hehl-Strasse D-72290 Lossburg Tel.: +49 (0) 7446 33-3659 Fax.: +49 (0) 7446 33-3365 mailto:heiko_elgernos...@arburg.com http://www.arburg.com Bitte entfernen Sie NOSPAM von der Email-Adresse Please remove NOSPAM from the email address
[ccache] preprocessing with -P
Dear friends, first of all, thanks a lot for ccache, it is really a great utility! I've produced a little patch which allows to get object file from cache, if the only change is the include path (but not the include itself). Stripping -I from the hashing is not enough: you have to run the preprocessor with -P option, otherwise you will get the full include path in the preprocessed source, making the stripping useless. If you find it a good idea, please include it (at least as an option!) in your sourcetree, so I can avoid to use a patched one. If you think it is not a good idea, please discuss why, as I'm really very interested in your opinion about it. Anyway, here it is: --CUT-HERE-- diff -u -r1.91 ccache.c --- ccache.c28 Sep 2003 04:47:59 - 1.91 +++ ccache.c3 Dec 2003 13:05:42 - @@ -355,9 +355,10 @@ if (!direct_i_file) { /* run cpp on the input file to obtain the .i */ args_add(args, -E); + args_add(args, -P); args_add(args, input_file); status = execute(args-argv, path_stdout, path_stderr); - args_pop(args, 2); + args_pop(args, 3); } else { /* we are compiling a .i or .ii file - that means we can skip the cpp stage and directly form the --CUT-HERE-- Ciao, Giulio
[ccache] PRB: ccache directory not available
On 2 Dec 2003, heiko_el...@arburg.com wrote: ccache: version 2.2 OS: Windows XP Professional cygwin: latest version Hello, first of all: we like ccache - its a great utlility - thanks a lot! We're using ccache to share compiler output between several people. All works fine - but if the ccache file server is not available - it would be nice if ccache compile local instead of generating an error message like the following: ccache: failed to create //ad26080/ccache (No such host or network path) Perhaps a new flag or environement variable or per default fall back to compile on local host without try fetching/saving files to ccache directory. I searched the man pages for such an option - but without success! Perhaps you can add a feature like this in the next release. I think that should be on by default: just emit a warning and then compile without a cache. Probably a one line change. -- Martin linux.conf.au -- Adelaide, January 2004 -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.samba.org/archive/ccache/attachments/20031203/ce520a4d/attachment.bin