This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc linked to ccache with installed version
- From: Zdeněk Sojka <zsojka at seznam dot cz>
- To: RR <rrsacct at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Apr 2011 21:18:48 +0200 (CEST)
- Subject: 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