Remove -Werror when using check_cxx_compiler_flag because it was causing compiler...
authorEric Fiselier <eric@efcs.ca>
Fri, 31 Jul 2015 21:09:38 +0000 (21:09 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 31 Jul 2015 21:09:38 +0000 (21:09 +0000)
llvm-svn: 243784

libcxx/cmake/Modules/HandleLibcxxFlags.cmake

index 2a450da..223b7b7 100644 (file)
@@ -96,7 +96,7 @@ endmacro()
 macro(add_compile_flags_if_supported)
   foreach(flag ${ARGN})
       mangle_name("${flag}" flagname)
-      check_cxx_compiler_flag("-Werror ${flag}" "LIBCXX_SUPPORTS_${flagname}_FLAG")
+      check_cxx_compiler_flag("${flag}" "LIBCXX_SUPPORTS_${flagname}_FLAG")
       add_compile_flags_if(LIBCXX_SUPPORTS_${flagname}_FLAG ${flag})
   endforeach()
 endmacro()