This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc linked to ccache with installed version


> ------------ Původní zpráva ------------
> Od: RR <rrsacct@gmail.com>
> Předmět: gcc linked to ccache with installed version
> Datum: 21.4.2011 21:09:43
> ----------------------------------------
> I noticed that my installed version of gcc is linked to ccache. When I
> type gcc on the command line, I
> get "gcc: no input files". When I type ccache, I get the ccache usage
> message. But when I
> type "ccache gcc" I get "gcc: no input files". It seems that gcc is
> engaging ccache with the option "gcc"
> appended somehow. I would like to know how the link name, gcc, engages
> ccache with the gcc option specified.
>
>
>

Likely ccache executes something like "$* -E" to get the preprocessed source it uses for caching.
The output you see is from "gcc -E":
$ gcc -E
gcc: no input files

Zdenek Sojka


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]