This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Compiling libstdc++-v3 without the testsuite
Thanks Paolo,
Your info helped greatly. I had to alter testsuite_abi.cc and
testsuite_hooks.cc to get it to work.
Thanks again,
Peter.
Paolo Carlini wrote:
Hi,
Greetings,
I am attempting to build a g++ cross-compiler without support for
exceptions. My problem is that the libstdc++-v3 testsuite uses the
throw() statement in about a million places and therefore refuses to
compile. Is there a ./configure time option which prevents
compilation of the testsuite? I cannot find one in the docs.
If I understand correctly your problem, in principle you only need to
pass
-fno-exceptions at build time, as part of the CXXFLAGS.
*But* I see that probably recently we are not testing sufficiently
with that option
and you may need to fix locally a bit the code (we'll take care of
those issues
ASAP): have a look to libstdc++-v3/libsupc++/exceptions_define.h, the
idea
is that in principle we should never use naked throw,
__throw_exception_again
instead. For me, 3.4.x works out of the box by just fixing a couple of
naked throw
in testsuite_abi.cc.
I hope you will find this info useful, maybe others more expert than
me in this
area can give you other suggestions.
Paolo.