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
This commit is contained in:
Bananymous 2023-11-30 13:39:33 +02:00
parent 8564b59e14
commit c1cac43f28
1 changed files with 2 additions and 0 deletions

View File

@ -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}/