On Fri, Oct 29, 2010 at 4:39 PM, Ian Lance Taylor <i...@google.com> wrote: > "H.J. Lu" <hjl.to...@gmail.com> writes: > >> On Fri, Oct 29, 2010 at 4:15 PM, Ian Lance Taylor <i...@google.com> wrote: >>> Paolo Bonzini <bonz...@gnu.org> writes: >>> >>>> On 10/24/2010 07:40 AM, Ian Lance Taylor wrote: >>>>> configure.ac >>>>> Add libgo. If building Go, build C++ as a boot language. >>>> >>>> Can you generalize this using something in gcc/go/config-lang.in? >>> >>> I have now done this on the gccgo branch. If language X's >>> config-lang.in sets the shell variable lang_requires_boot_language, then >>> if X is enabled all those languages are built during stage 1. >>> >> >> Don't we have boot_language for this purpose? > > No, boot_language serves a different purpose. It says that the language > itself should be built during stage 1. What I need for Go is to say > that C++ should be built during stage 1. That is, boot_language is a > yes or no value. I have added lang_requires_boot_language, which takes
Will put if [ Go is enabled ]; then boot_language=yes fi in cp/config-lang.in work? -- H.J.