[libc-commits] [libc] 723eaa4 - [libc][cmake] Enable assertions and Werror for baremetal builds (#214093)
via libc-commits
libc-commits at lists.llvm.org
Tue Aug 4 19:00:12 PDT 2026
Author: Prabhu Rajasekaran
Date: 2026-08-04T19:00:07-07:00
New Revision: 723eaa4f83396c81212784fb0006e3ca4be19441
URL: https://github.com/llvm/llvm-project/commit/723eaa4f83396c81212784fb0006e3ca4be19441
DIFF: https://github.com/llvm/llvm-project/commit/723eaa4f83396c81212784fb0006e3ca4be19441.diff
LOG: [libc][cmake] Enable assertions and Werror for baremetal builds (#214093)
Enable LLVM_ENABLE_ASSERTIONS and LLVM_ENABLE_WERROR in
baremetal_common.cmake
to ensure pre-merge checks catch assertion failures and compiler
warnings for
baremetal targets.
Assisted-by: Gemini
Added:
Modified:
libc/cmake/caches/baremetal_common.cmake
Removed:
################################################################################
diff --git a/libc/cmake/caches/baremetal_common.cmake b/libc/cmake/caches/baremetal_common.cmake
index c0d665d790393..0b75fbc702bca 100644
--- a/libc/cmake/caches/baremetal_common.cmake
+++ b/libc/cmake/caches/baremetal_common.cmake
@@ -19,3 +19,5 @@ set(LLVM_DEFAULT_TARGET_TRIPLE ${RUNTIMES_TARGET_TRIPLE} CACHE STRING "")
set(LIBC_TARGET_TRIPLE ${RUNTIMES_TARGET_TRIPLE} CACHE STRING "")
set(LLVM_LIBC_FULL_BUILD "ON" CACHE BOOL "")
+set(LLVM_ENABLE_ASSERTIONS ON CACHE BOOL "")
+set(LLVM_ENABLE_WERROR ON CACHE BOOL "")
More information about the libc-commits
mailing list