This is the mail archive of the gcc@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: 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



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