This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Overriding cc1
- From: Pat Haugen <pthaugen at us dot ibm dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 13 May 2004 13:34:20 -0500
- Subject: Re: Overriding cc1
Paul Brook <paul@codesourcery.com> wrote on 05/13/2004 01:00:56 PM:
> On Thursday 13 May 2004 18:40, Pat Haugen wrote:
> > Is there a command line option for gcc that would allow me to override
the
> > cc1 executable that gets invoked?
> >
> > gcc -???=/some/path/cc1.new file.c
>
> You can use -B<dir> to specify the patch of the cc1 executable.
>
> Paul
OK, confused myself. I was thinking -B would mean it will now ONLY search
there for everything, but just tried a simple testcase and it looks like
things worked as I wanted. 'cc1' was found from the new location and
everything else (that wasn't in my -B directory) was found from the normal
location in the install tree.
Thanks for the help.
-Pat