Skip to content

Commit ca08f81

Browse files
[libc] build with -Werror
A recent commit introduced warnings observable when building unit tests. If the unit tests don't fail when warnings are introduced into the build, then we might fail to notice them in the stream of output from check-libc. Link: https://github.com/llvm/llvm-project/pull/72763/files#r1410932348
1 parent e469f84 commit ca08f81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libc/cmake/modules/LLVMLibCObjectRules.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ function(_get_common_compile_options output_var flags)
4343
list(APPEND compile_options "-fno-rtti")
4444
list(APPEND compile_options "-Wall")
4545
list(APPEND compile_options "-Wextra")
46+
list(APPEND compile_options "-Werror")
4647
list(APPEND compile_options "-Wconversion")
4748
list(APPEND compile_options "-Wno-sign-conversion")
4849
list(APPEND compile_options "-Wimplicit-fallthrough")

0 commit comments

Comments
 (0)