From owner-svn-src-all@FreeBSD.ORG Fri Sep 6 20:42:15 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8535FC0B; Fri, 6 Sep 2013 20:42:15 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 72B542325; Fri, 6 Sep 2013 20:42:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r86KgFeh071026; Fri, 6 Sep 2013 20:42:15 GMT (envelope-from theraven@svn.freebsd.org) Received: (from theraven@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r86KgFcK071024; Fri, 6 Sep 2013 20:42:15 GMT (envelope-from theraven@svn.freebsd.org) Message-Id: <201309062042.r86KgFcK071024@svn.freebsd.org> From: David Chisnall Date: Fri, 6 Sep 2013 20:42:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255324 - head/share/mk X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Sep 2013 20:42:15 -0000 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