diff mbox

config/gcc: Select CC_LANG_CXX for >= gcc-4.8

Message ID 8056ff520353d2ef44b4.1393055185@Bryans-MacBook-Pro.local
State Rejected
Headers show

Commit Message

Bryan Hundven Feb. 22, 2014, 7:46 a.m. UTC
# HG changeset patch
# User Bryan Hundven <bryanhundven@gmail.com>
# Date 1393055172 28800
#      Fri Feb 21 23:46:12 2014 -0800
# Node ID 8056ff520353d2ef44b4127f8bc67d3feac40678
# Parent  9321d9d7af9bd605eec2811b6703392331db3469
config/gcc: Select CC_LANG_CXX for >= gcc-4.8

Automatically select CXX if gcc is greater then or equal to 4.8.

Also add CC_SUPPORT_GOLANG to CC_GCC_latest.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>


--
For unsubscribe information see http://sourceware.org/lists.html#faq

Comments

Yann E. MORIN May 5, 2014, 10:40 p.m. UTC | #1
Bryan, All,

On 2014-02-21 23:46 -0800, bryanhundven@gmail.com spake thusly:
> # HG changeset patch
> # User Bryan Hundven <bryanhundven@gmail.com>
> # Date 1393055172 28800
> #      Fri Feb 21 23:46:12 2014 -0800
> # Node ID 8056ff520353d2ef44b4127f8bc67d3feac40678
> # Parent  9321d9d7af9bd605eec2811b6703392331db3469
> config/gcc: Select CC_LANG_CXX for >= gcc-4.8
> 
> Automatically select CXX if gcc is greater then or equal to 4.8.

Why do you need to always select C++ for gcc >= 4.8 ?

gcc now requires a C++ compiler to be built, indeed. But surely we still
want to be able to build a C-only compiler, no?

Regards,
Yann E. MORIN.

> Also add CC_SUPPORT_GOLANG to CC_GCC_latest.
> 
> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
> 
> diff -r 9321d9d7af9b -r 8056ff520353 config/cc/gcc.in
> --- a/config/cc/gcc.in	Thu Feb 20 18:23:08 2014 +0000
> +++ b/config/cc/gcc.in	Fri Feb 21 23:46:12 2014 -0800
> @@ -349,6 +349,7 @@
>      select CC_GCC_HAS_LNK_HASH_STYLE
>      select CC_GCC_HAS_LIBQUADMATH
>      select CC_SUPPORT_GOLANG
> +    select CC_LANG_CXX
>  
>  config CC_GCC_4_8_or_later
>      bool
> @@ -365,6 +366,8 @@
>      select CC_GCC_HAS_BUILD_ID
>      select CC_GCC_HAS_LNK_HASH_STYLE
>      select CC_GCC_HAS_LIBQUADMATH
> +    select CC_SUPPORT_GOLANG
> +    select CC_LANG_CXX
>  
>  config CC_GCC_HAS_GRAPHITE
>      bool
diff mbox

Patch

diff -r 9321d9d7af9b -r 8056ff520353 config/cc/gcc.in
--- a/config/cc/gcc.in	Thu Feb 20 18:23:08 2014 +0000
+++ b/config/cc/gcc.in	Fri Feb 21 23:46:12 2014 -0800
@@ -349,6 +349,7 @@ 
     select CC_GCC_HAS_LNK_HASH_STYLE
     select CC_GCC_HAS_LIBQUADMATH
     select CC_SUPPORT_GOLANG
+    select CC_LANG_CXX
 
 config CC_GCC_4_8_or_later
     bool
@@ -365,6 +366,8 @@ 
     select CC_GCC_HAS_BUILD_ID
     select CC_GCC_HAS_LNK_HASH_STYLE
     select CC_GCC_HAS_LIBQUADMATH
+    select CC_SUPPORT_GOLANG
+    select CC_LANG_CXX
 
 config CC_GCC_HAS_GRAPHITE
     bool