Fix handling of -Wno-pedantic

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@250452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier 2015-10-15 20:27:15 +00:00
parent b9aebae3dc
commit 7b081f6bc5

View File

@ -219,8 +219,9 @@ remove_flags(-DNDEBUG -UNDEBUG -D_DEBUG
-stdlib=libc++ -stdlib=libstdc++ -lc++abi -m32) -stdlib=libc++ -stdlib=libstdc++ -lc++abi -m32)
# FIXME(EricWF): See the FIXME on LIBCXX_ENABLE_PEDANTIC. # FIXME(EricWF): See the FIXME on LIBCXX_ENABLE_PEDANTIC.
# Remove the -pedantic flag provided by LLVM. # Remove the -pedantic flag and -Wno-pedantic and -pedantic-errors
remove_flags(-pedantic) # so they don't get transformed into -Wno and -errors respectivly.
remove_flags(-Wno-pedantic -pedantic-errors -pedantic)
# Required flags ============================================================== # Required flags ==============================================================
add_compile_flags_if_supported(-std=c++11) add_compile_flags_if_supported(-std=c++11)