This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: (no) GCC pre-compiled headers on Cygwin
- From: Phil Edwards <phil at jaj dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 23 Jul 2003 02:02:38 -0400
- Subject: Re: (no) GCC pre-compiled headers on Cygwin
- References: <20030722102833.60471912.bkoz@redhat.com> <or4r1dx1su.fsf@free.redhat.lsd.ic.unicamp.br>
On Wed, Jul 23, 2003 at 02:14:09AM -0300, Alexandre Oliva wrote:
> On Jul 22, 2003, Benjamin Kosnik <bkoz@redhat.com> wrote:
>
> >> Would a change that made it fail in the current conditions be acceptable
> >> for libstdc++?
>
> > Yes please.
>
> How's this? Ok to install?
+ if ${CXX-g++} $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
+ -o conftest.h.gch 1>&5 2>&1 &&
+ echo '#error "pch failed"' > conftest.h &&
+ echo '#include "conftest.h"' > conftest.C &&
+ ${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.C 1>&5 2>&1 ; then
Please use $glibcxx_CXX rather than $CXX (there's a comment in
GLIBCXX_CONFIGRE in acinclude.m4 explaining why, even though we set CXX
anyhow, odd...)
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams