From 16bd6cbdf0fddbe5bee1a4ef17b0c1ac8c305d72 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Fri, 31 Jul 2015 21:09:38 +0000 Subject: [PATCH] Remove -Werror when using check_cxx_compiler_flag because it was causing compiler-rt breakages. llvm-svn: 243784 --- libcxx/cmake/Modules/HandleLibcxxFlags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/cmake/Modules/HandleLibcxxFlags.cmake b/libcxx/cmake/Modules/HandleLibcxxFlags.cmake index 2a450da..223b7b7 100644 --- a/libcxx/cmake/Modules/HandleLibcxxFlags.cmake +++ b/libcxx/cmake/Modules/HandleLibcxxFlags.cmake @@ -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() -- 2.7.4