From cb23a49e4011040e73b49f90e9aae5b217f05bf3 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Sat, 10 Oct 2015 03:34:52 +0000 Subject: [PATCH] Turn off -pedantic by default when building due to #include_next. :-( git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@249939 91177308-0d34-0410-b5e6-96231b3b80d8 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb9e2bf2..0dc93810 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,9 @@ option(LIBCXX_ENABLE_MONOTONIC_CLOCK This option may only be set to OFF when LIBCXX_ENABLE_THREADS=OFF." ON) # Misc options ---------------------------------------------------------------- -option(LIBCXX_ENABLE_PEDANTIC "Compile with pedantic enabled." ON) +# FIXME: Turn -pedantic back ON. It is currently off because it warns +# about #include_next which is used everywhere. +option(LIBCXX_ENABLE_PEDANTIC "Compile with pedantic enabled." OFF) option(LIBCXX_ENABLE_WERROR "Fail and stop if a warning is triggered." OFF) option(LIBCXX_GENERATE_COVERAGE "Enable generating code coverage." OFF)