aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.sys.mk
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2014-02-21 22:38:25 +0000
committerDimitry Andric <dim@FreeBSD.org>2014-02-21 22:38:25 +0000
commit2879baf24b8f23b28add4a100b2021dbf50f760a (patch)
treee8fb3dfb97cb30d7bc0247b8b1b40515893872cd /share/mk/bsd.sys.mk
parent1f9e8f8ad967a2a36165d6f55ac033c93071d73a (diff)
downloadsrc-2879baf24b8f23b28add4a100b2021dbf50f760a.tar.gz
src-2879baf24b8f23b28add4a100b2021dbf50f760a.zip
Move the part in bsd.own.mk that sets -Wno-c++11-extensions for clang to
bsd.sys.mk, where it really belongs. This also causes the flag to get added when clang is *not* the default system compiler, but is still used, e.g. by setting WITH_CLANG_IS_CC manually. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=262310
Diffstat (limited to 'share/mk/bsd.sys.mk')
-rw-r--r--share/mk/bsd.sys.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 5ba2d5162bb9..7779580214e8 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -120,6 +120,12 @@ CLANG_NO_IAS= -no-integrated-as
CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\
-mllvm -enable-load-pre=false -mllvm -simplifycfg-dup-ret
CFLAGS+= -Qunused-arguments
+# The libc++ headers use c++11 extensions. These are normally silenced because
+# they are treated as system headers, but we explicitly disable that warning
+# 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.
+CXXFLAGS+= -Wno-c++11-extensions
CFLAGS+= ${CFLAGS.clang}
CXXFLAGS+= ${CXXFLAGS.clang}
.else # !CLANG