[llvm-branch-commits] [libc] [libc] Enable -Werror in baremetal_common.cmake cache file (PR #241983)
Victor Campos via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 13 02:03:39 PST 2026
https://github.com/vhscampos updated https://github.com/llvm/llvm-project/pull/241983
>From f6ffb8cbf9e00b97fde204d87786526e1d5011bc Mon Sep 17 00:00:00 2001
From: Victor Campos <victor.campos at arm.com>
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 "")
More information about the llvm-branch-commits
mailing list