This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-4.7.1 build system question : why is "make bootstrap" with configure option '--enable-languages=c' building the C++ compiler ?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Jason Vas Dias <jason dot vas dot dias at gmail dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 8 Jul 2012 16:37:26 +0100
- Subject: Re: gcc-4.7.1 build system question : why is "make bootstrap" with configure option '--enable-languages=c' building the C++ compiler ?
Hi,
The gcc-bugs mailing list is for automated emails from our Bugzilla
database. Your question is not about a bug, so would be more
appropriate on the gcc-help mailing list.
The answer to your question is that GCC itself is now built using a
C++ compiler, so it needs to build the C++ compiler to build itself,
see http://gcc.gnu.org/install/configure.html
--enable-build-poststage1-with-cxx
When bootstrapping, build stages 2 and 3 of GCC using a C++
compiler rather than a C compiler. Stage 1 is still built with a C
compiler. This is enabled by default and may be disabled using
--disable-build-poststage1-with-cxx.