summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2013-09-06 20:42:14 +0000
committertheraven <theraven@FreeBSD.org>2013-09-06 20:42:14 +0000
commiteee637eb83c22cf3154458055af8575829e1239e (patch)
tree13bf8bfa09f41dbd47a32a594d9c668d089b72f0 /share
parentf46bf10bc588f103e0c3cd87d8b6a3aeb4074085 (diff)
downloadFreeBSD-src-eee637eb83c22cf3154458055af8575829e1239e.zip
FreeBSD-src-eee637eb83c22cf3154458055af8575829e1239e.tar.gz
Only set -Wno-c++11-extensions if we're building with clang, so bootstrapping
clang with gcc doesn't fail.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.own.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index 48cce5c..39cf72e 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -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
OpenPOWER on IntegriCloud