summaryrefslogtreecommitdiff
path: root/examples/build_system
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-12-08 16:27:39 +0700
committerhathach <[email protected]>2025-12-09 19:00:14 +0700
commit16c92b50b07f29bd0a9ea1feb927bdcb95be8281 (patch)
treebebb1e05239bff7e423d6e09a34fa50e006312b8 /examples/build_system
parent2c78a2dd9c4c860004ebf06c1fcf5b3dd58cb48f (diff)
update metrics to support bloaty
Diffstat (limited to 'examples/build_system')
-rw-r--r--examples/build_system/cmake/toolchain/common.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/build_system/cmake/toolchain/common.cmake b/examples/build_system/cmake/toolchain/common.cmake
index 14449b01d..1ef04bc00 100644
--- a/examples/build_system/cmake/toolchain/common.cmake
+++ b/examples/build_system/cmake/toolchain/common.cmake
@@ -26,6 +26,7 @@ if (TOOLCHAIN STREQUAL "gcc" OR TOOLCHAIN STREQUAL "clang")
-ffunction-sections
# -fsingle-precision-constant # not supported by clang
-fno-strict-aliasing
+ -g
)
list(APPEND TOOLCHAIN_EXE_LINKER_FLAGS
-Wl,--print-memory-usage
@@ -33,6 +34,9 @@ if (TOOLCHAIN STREQUAL "gcc" OR TOOLCHAIN STREQUAL "clang")
-Wl,--cref
)
elseif (TOOLCHAIN STREQUAL "iar")
+ list(APPEND TOOLCHAIN_COMMON_FLAGS
+ --debug
+ )
list(APPEND TOOLCHAIN_EXE_LINKER_FLAGS
--diag_suppress=Li065
)