diff mbox

[gccgo] Set lang_requires_boot_language

Message ID mcrtyk44nxo.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor Oct. 29, 2010, 10:46 p.m. UTC
This patch sets lang_requires_boot_language in the Go config-lang.in
file.  I will shortly send a patch which uses that at the top level to
know that bootstrapping the Go frontend requires building the C++
frontend at stage 1.

Committed to gccgo branch.

Ian

Comments

Ralf Wildenhues Oct. 30, 2010, 6:46 a.m. UTC | #1
Hello Ian,

* Ian Lance Taylor wrote on Sat, Oct 30, 2010 at 12:46:43AM CEST:
> This patch sets lang_requires_boot_language in the Go config-lang.in
> file.  I will shortly send a patch which uses that at the top level to
> know that bootstrapping the Go frontend requires building the C++
> frontend at stage 1.

> --- a/go/config-lang.in	Sat Oct 23 11:39:02 2010 -0700
> +++ b/go/config-lang.in	Fri Oct 29 15:43:09 2010 -0700
> @@ -16,4 +16,8 @@
>  
>  target_libs="target-libgo"
>  
> +# The Go frontend is written in C++, so we need to build the C++
> +# compiler during stage 1.
> +lang_requires_boot_language=c++

Shouldn't that be lang_requires_boot_languages (note the final s)
so the logic could apply to a list of languages as well eventually?

Cheers,
Ralf
diff mbox

Patch

diff -r 29d30bc6d2e1 go/config-lang.in
--- a/go/config-lang.in	Sat Oct 23 11:39:02 2010 -0700
+++ b/go/config-lang.in	Fri Oct 29 15:43:09 2010 -0700
@@ -16,4 +16,8 @@ 
 
 target_libs="target-libgo"
 
+# The Go frontend is written in C++, so we need to build the C++
+# compiler during stage 1.
+lang_requires_boot_language=c++
+
 gtfiles="\$(srcdir)/go/go-lang.c"