Date: Fri, 6 Sep 2013 20:42:15 +0000 (UTC) From: David Chisnall <theraven@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255324 - head/share/mk Message-ID: <201309062042.r86KgFcK071024@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: theraven Date: Fri Sep 6 20:42:14 2013 New Revision: 255324 URL: http://svnweb.freebsd.org/changeset/base/255324 Log: Only set -Wno-c++11-extensions if we're building with clang, so bootstrapping clang with gcc doesn't fail. Modified: head/share/mk/bsd.own.mk Modified: head/share/mk/bsd.own.mk ============================================================================== --- head/share/mk/bsd.own.mk Fri Sep 6 20:24:21 2013 (r255323) +++ head/share/mk/bsd.own.mk Fri Sep 6 20:42:14 2013 (r255324) @@ -431,7 +431,10 @@ __DEFAULT_NO_OPTIONS+=GCC GNUCXX # suppression when building the base system to catch bugs in our headers. # Eventually we'll want to start building the base system C++ code as C++11, # but not yet. +_COMPVERSION!= ${CC} --version +.if ${_COMPVERSION:Mclang} CXXFLAGS+= -Wno-c++11-extensions +.endif .else # If clang is not cc, then build gcc by default __DEFAULT_NO_OPTIONS+=CLANG_IS_CC
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309062042.r86KgFcK071024>