Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Oct 2014 19:58:24 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273405 - head/share/mk
Message-ID:  <201410211958.s9LJwOX4058061@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Oct 21 19:58:23 2014
New Revision: 273405
URL: https://svnweb.freebsd.org/changeset/base/273405

Log:
  When using an external toolchain note that gcc 4.8+ supports C++11
  
  Submitted by:	imp

Modified:
  head/share/mk/bsd.compiler.mk

Modified: head/share/mk/bsd.compiler.mk
==============================================================================
--- head/share/mk/bsd.compiler.mk	Tue Oct 21 19:56:45 2014	(r273404)
+++ head/share/mk/bsd.compiler.mk	Tue Oct 21 19:58:23 2014	(r273405)
@@ -42,7 +42,8 @@ COMPILER_VERSION!=echo ${_v:M[1-9].[0-9]
 .endif
 .undef _v
 
-.if ${COMPILER_TYPE} == "clang"
+.if ${COMPILER_TYPE} == "clang" || \
+	(${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 40800)
 COMPILER_FEATURES=	c++11
 .else
 COMPILER_FEATURES=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410211958.s9LJwOX4058061>