diff options
| author | hathach <[email protected]> | 2025-12-08 16:27:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-12-09 19:00:14 +0700 |
| commit | 16c92b50b07f29bd0a9ea1feb927bdcb95be8281 (patch) | |
| tree | bebb1e05239bff7e423d6e09a34fa50e006312b8 /examples | |
| parent | 2c78a2dd9c4c860004ebf06c1fcf5b3dd58cb48f (diff) | |
update metrics to support bloaty
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/build_system/cmake/toolchain/common.cmake | 4 |
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 ) |
