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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to