[libcxx] r250256 - Workaround -pedantic flag added by LLVM

Evgenii Stepanov via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 15 12:51:37 PDT 2015


Guess what this does to the -Wno-pedantic flag added by MSan? :)

On Tue, Oct 13, 2015 at 4:56 PM, Eric Fiselier via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
> Author: ericwf
> Date: Tue Oct 13 18:56:33 2015
> New Revision: 250256
>
> URL: http://llvm.org/viewvc/llvm-project?rev=250256&view=rev
> Log:
> Workaround -pedantic flag added by LLVM
>
> Modified:
>     libcxx/trunk/CMakeLists.txt
>
> Modified: libcxx/trunk/CMakeLists.txt
> URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/CMakeLists.txt?rev=250256&r1=250255&r2=250256&view=diff
> ==============================================================================
> --- libcxx/trunk/CMakeLists.txt (original)
> +++ libcxx/trunk/CMakeLists.txt Tue Oct 13 18:56:33 2015
> @@ -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)
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits


More information about the cfe-commits mailing list