This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++-v3 cross-configure support for Darwin
- From: Phil Edwards <phil at jaj dot com>
- To: Geoffrey Keating <gkeating at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Aug 2003 01:00:01 -0400
- Subject: Re: libstdc++-v3 cross-configure support for Darwin
- References: <200308200331.h7K3Vfkg014235@keatge.apple.com>
On Tue, Aug 19, 2003 at 08:31:41PM -0700, Geoffrey Keating wrote:
>
> For crosses to Darwin, you really do want to run all these configure
> tests, because the result vary between versions. This is slightly
> unfortunate, because some of these macros are quite large, but I
> didn't want to start rearranging all of the libstdc++ cross-configury
We could probably find some way of putting all the "native" tests in a
single function. Then both the native branch and the Darwin cross branch
could just call that function. Depends on how bad the duplication gets.
(Yes, I know how the autoconf folks feel about shell functions, and
I disagree.)
> (and really, the macros shouldn't be so large anyway, they could use
> shell `for' loops instead of code duplication).
They did, at one point.
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan