Overriding cc1
Pat Haugen
pthaugen@us.ibm.com
Thu May 13 18:34:00 GMT 2004
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
More information about the Gcc
mailing list