https://github.com/vhscampos created 
https://github.com/llvm/llvm-project/pull/241983

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

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

>From dcc766a6f2171cf17460c12575626632867a2015 Mon Sep 17 00:00:00 2001
From: Victor Campos <[email protected]>
Date: Thu, 12 Nov 2026 11:04:25 +0000
Subject: [PATCH] [libc] Enable -Werror in baremetal_common.cmake cache file

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

Enable -Werror again so that we can catch warnings as they come.
---
 libc/cmake/caches/baremetal_common.cmake | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libc/cmake/caches/baremetal_common.cmake 
b/libc/cmake/caches/baremetal_common.cmake
index ba28253e1d15b..01ec7a75c6017 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 "")

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to