This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Changing the C/C++ compiler for gdb testsuite runs
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb at sources dot redhat dot com
- Date: Thu, 10 Jan 2002 17:21:53 -0800
- Subject: Re: Changing the C/C++ compiler for gdb testsuite runs
- Newsgroups: cygnus.gdb
- Organization: Red Hat, Inc.
- References: <200201101345.NAA03946@cam-mail2.cambridge.arm.com>
Richard Earnshaw wrote:
>
> I'm not a dejagnu expert, so the answer to this may be obvious.
>
> Is there a way of forcing the GDB testsuite to use a particular compiler
> that hasn't yet been installed (I have a gcc-3 compiler from a build tree
> that I'd like to use to run the tests, but I don't particularly want to
> have to install it first). I've tried running
>
> make check
>
> with both CC_FOR_TARGET and CC set to point to the compiler, but neither
> seems to work. There doesn't appear to be anything on this in the gdb
> internals manual either.
If you build both gcc and gdb in the same build tree,
the tests will use the gcc from the build tree.