Add stack usage diagonstic options

This commit is contained in:
Madeline Busig 2025-05-07 01:24:30 -07:00
parent f7869150bb
commit e0592cb72e

View File

@ -17,6 +17,9 @@ if (EXCEPTIONS STREQUAL OFF)
endif() endif()
add_compile_definitions(ETL_THROW_EXCEPTIONS) add_compile_definitions(ETL_THROW_EXCEPTIONS)
add_compile_options("-fstack-usage")
add_compile_options("-fcallgraph-info=su")
add_compile_options("-Wstack-usage=1000")
add_link_options("-Wl,--print-memory-usage") add_link_options("-Wl,--print-memory-usage")
add_executable(${PROJECT_NAME}) add_executable(${PROJECT_NAME})