From 0abe30af384a0e2f02b9276eb35fcbfaea04d2ab Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 17 Aug 2023 20:49:52 +0300 Subject: [PATCH] BuildSystem: only apply stack usage warning to libc --- libc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt index 1287c4a0bb..44837c6c45 100644 --- a/libc/CMakeLists.txt +++ b/libc/CMakeLists.txt @@ -30,7 +30,7 @@ add_custom_target(libc-headers add_library(libc ${LIBC_SOURCES}) add_dependencies(libc headers crt0) -target_compile_options(libc PUBLIC -g -Wstack-usage=512) +target_compile_options(libc PRIVATE -g -Wstack-usage=512) add_custom_target(libc-install COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/libc.a ${BANAN_LIB}/