From ba5f3206bfb4e0cb30ef29f9701de308d7db7700 Mon Sep 17 00:00:00 2001 From: Maddie Busig Date: Wed, 7 May 2025 01:24:30 -0700 Subject: [PATCH] Add stack usage diagonstic options --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2cd755..a7a5d80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,9 @@ if (EXCEPTIONS STREQUAL OFF) endif() 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_executable(${PROJECT_NAME})