This is the mail archive of the gcc-patches@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: libstdc++-v3 cross-configure support for Darwin


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


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