[libc-commits] [libc] [libc] Enable -Werror in baremetal_common.cmake cache file (PR #241796)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 12 03:12:49 PST 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Victor Campos (vhscampos)

<details>
<summary>Changes</summary>

After recent fixes, all the warnings are gone in baremetal builds.

Enable -Werror again so that we can catch warnings as they come.

---
Full diff: https://github.com/llvm/llvm-project/pull/241796.diff


1 Files Affected:

- (modified) libc/cmake/caches/baremetal_common.cmake (+1-2) 


``````````diff
diff --git a/libc/cmake/caches/baremetal_common.cmake b/libc/cmake/caches/baremetal_common.cmake
index ba28253e1d15b9..01ec7a75c6017a 100644
--- a/libc/cmake/caches/baremetal_common.cmake
+++ b/libc/cmake/caches/baremetal_common.cmake
@@ -20,8 +20,7 @@ set(LIBC_TARGET_TRIPLE ${RUNTIMES_TARGET_TRIPLE} CACHE STRING "")
 
 set(LLVM_LIBC_FULL_BUILD "ON" CACHE BOOL "")
 set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
-# TODO : Enable this flag and fix related failures in a subsequent PR
-# set(LLVM_ENABLE_WERROR ON CACHE BOOL "")
+set(LLVM_ENABLE_WERROR ON CACHE BOOL "")
 
 # Bare-metal compiler-rt builtins configuration (active when compiler-rt is enabled in LLVM_ENABLE_RUNTIMES).
 set(COMPILER_RT_BUILD_BUILTINS ON CACHE BOOL "")

``````````

</details>


https://github.com/llvm/llvm-project/pull/241796


More information about the libc-commits mailing list