Only set -Wno-c++11-extensions if we're building with clang, so bootstrapping
clang with gcc doesn't fail.
This commit is contained in:
parent
f46bf10bc5
commit
eee637eb83
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user