We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca08f81 commit eb6bac4Copy full SHA for eb6bac4
libc/cmake/modules/LLVMLibCObjectRules.cmake
@@ -43,7 +43,10 @@ function(_get_common_compile_options output_var flags)
43
list(APPEND compile_options "-fno-rtti")
44
list(APPEND compile_options "-Wall")
45
list(APPEND compile_options "-Wextra")
46
- list(APPEND compile_options "-Werror")
+ # -DLLVM_LIBC_WNO_ERROR=ON if you can't build cleanly with -Werror.
47
+ if(NOT LLVM_LIBC_WNO_ERROR)
48
+ list(APPEND compile_options "-Werror")
49
+ endif()
50
list(APPEND compile_options "-Wconversion")
51
list(APPEND compile_options "-Wno-sign-conversion")
52
list(APPEND compile_options "-Wimplicit-fallthrough")
0 commit comments