Skip to content

Commit

Permalink
Only set -Wno-c++11-extensions if we're building with clang, so boots…
Browse files Browse the repository at this point in the history
…trapping

clang with gcc doesn't fail.
  • Loading branch information
davidchisnall committed Sep 6, 2013
1 parent f46bf10 commit eee637e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions share/mk/bsd.own.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eee637e

Please sign in to comment.