Workaround -pedantic flag added by LLVM

llvm-svn: 250256
This commit is contained in:
Eric Fiselier 2015-10-13 23:56:33 +00:00
parent 2243d7b84c
commit f4bfd7c6ff

View File

@ -198,6 +198,10 @@ include(HandleLibcxxFlags)
remove_flags(-DNDEBUG -UNDEBUG -D_DEBUG
-stdlib=libc++ -stdlib=libstdc++ -lc++abi -m32)
# FIXME(EricWF): See the FIXME on LIBCXX_ENABLE_PEDANTIC.
# Remove the -pedantic flag provided by LLVM.
remove_flags(-pedantic)
# Required flags ==============================================================
add_compile_flags_if_supported(-std=c++11)
if (NOT MSVC AND NOT LIBCXX_SUPPORTS_STD_EQ_CXX11_FLAG)