Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:40 -0000
From:      Enji Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r346109 - user/ngie/fix-up-cxxstd/share/mk
Message-ID:  <201904102227.x3AMR0Ei010924@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Wed Apr 10 22:26:59 2019
New Revision: 346109
URL: https://svnweb.freebsd.org/changeset/base/346109

Log:
  Clarify a comment w.r.t. -std=g++98 and clang++ < 6.x
  
  While here, simplify a conditional

Modified:
  user/ngie/fix-up-cxxstd/share/mk/bsd.sys.mk

Modified: user/ngie/fix-up-cxxstd/share/mk/bsd.sys.mk
==============================================================================
--- user/ngie/fix-up-cxxstd/share/mk/bsd.sys.mk	Wed Apr 10 22:19:47 2019	(r346108)
+++ user/ngie/fix-up-cxxstd/share/mk/bsd.sys.mk	Wed Apr 10 22:26:59 2019	(r346109)
@@ -31,10 +31,9 @@ CFLAGS+=	-std=${CSTD}
 .if ${COMPILER_TYPE} == "clang" || ${COMPILER_TYPE} == "gcc"
 .if ${COMPILER_VERSION} >= 60000
 CXXSTD?=	gnu++14
-.else
-# Prior versions of g++ support C++98 with GNU extensions by default.
-CXXSTD?=	gnu++98
 .endif
+# Prior versions of clang++/g++ support C++98 with GNU extensions by default.
+CXXSTD?=	gnu++98
 .endif
 # Assume that the compiler supports at least C++98.
 CXXSTD?=	c++98





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