This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How do I pass flags to the testsuites?
- To: mark at markmitchell dot com
- Subject: Re: How do I pass flags to the testsuites?
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 17 Aug 1998 22:56:39 -0600
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199808180043.RAA19666@smtp.earthlink.net>you write:
>
> I configured a tree with:
>
> env CXXFLAGS="-fnew-abi -fno-honor-std" ../configure
>
> But, I get test failures because those flags are not automatically
> passed to the tests.
Right. Nowhere in the configure/build process do we try to propagate
configure flags down to the testsuite. Consider if we did -- particularly
for things like "-O2" -- all the gcc tests suddenly test with -O2
which is definitely not what we want.
> pass these flags to the libio/libstdc++/g++ test suites? Why don't
> those flags get passed automatically?
Lots of ways. You can hack up unix.exp to pass additional arguments
or a local site.exp. At least I think you can still hack the local
site.exp to arrange for args to be passed to the testsuite.
jeff