BuildSystem: only apply stack usage warning to libc

This commit is contained in:
Bananymous 2023-08-17 20:49:52 +03:00
parent eb98d70a0b
commit dc7391dc89
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ add_custom_target(libc-headers
add_library(libc ${LIBC_SOURCES}) add_library(libc ${LIBC_SOURCES})
add_dependencies(libc headers crt0) 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 add_custom_target(libc-install
COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/libc.a ${BANAN_LIB}/ COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/libc.a ${BANAN_LIB}/