Skip to content

Commit

Permalink
add LLVM_LIBC_WNO_ERROR config
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdesaulniers committed Dec 1, 2023
1 parent ca08f81 commit eb6bac4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libc/cmake/modules/LLVMLibCObjectRules.cmake
Expand Up @@ -43,7 +43,10 @@ function(_get_common_compile_options output_var flags)
list(APPEND compile_options "-fno-rtti")
list(APPEND compile_options "-Wall")
list(APPEND compile_options "-Wextra")
list(APPEND compile_options "-Werror")
# -DLLVM_LIBC_WNO_ERROR=ON if you can't build cleanly with -Werror.
if(NOT LLVM_LIBC_WNO_ERROR)
list(APPEND compile_options "-Werror")
endif()
list(APPEND compile_options "-Wconversion")
list(APPEND compile_options "-Wno-sign-conversion")
list(APPEND compile_options "-Wimplicit-fallthrough")
Expand Down

0 comments on commit eb6bac4

Please sign in to comment.