From c1cac43f287e3b20adb9acb7adfe305294422acc Mon Sep 17 00:00:00 2001 From: Bananymous Date: Thu, 30 Nov 2023 13:39:33 +0200 Subject: [PATCH] BuildSystem: Don't build lai with -Wstack-usage Lai has two functions that trigger warnings on gcc. There isn't really anything I can do about it, so just disable the warning --- kernel/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index 248a58bb..b26d0c16 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -167,6 +167,8 @@ endif() target_link_options(kernel PUBLIC -ffreestanding -nostdlib) +set_source_files_properties(${LAI_SOURCES} PROPERTIES COMPILE_FLAGS -Wno-stack-usage) + add_custom_target(kernel-headers COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different ${CMAKE_CURRENT_SOURCE_DIR}/include/ ${BANAN_INCLUDE}/ COMMAND ${CMAKE_COMMAND} -E copy_directory_if_different ${CMAKE_CURRENT_SOURCE_DIR}/lai/include/ ${BANAN_INCLUDE}/