This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit a17d33a801db07cf422343caaf3d3512babc74cd Author: zhangyu117 <[email protected]> AuthorDate: Fri May 22 17:11:08 2026 +0800 arch/tricore: add instrument-functions support for GCC cmake build Add CONFIG_ARCH_INSTRUMENT_ALL support in the GCC cmake toolchain file to enable the -finstrument-functions compiler option for TriCore targets, the makefile build already has it. Signed-off-by: zhangyu117 <[email protected]> --- arch/tricore/src/cmake/gcc.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/tricore/src/cmake/gcc.cmake b/arch/tricore/src/cmake/gcc.cmake index 872c9920ce6..95a00450446 100644 --- a/arch/tricore/src/cmake/gcc.cmake +++ b/arch/tricore/src/cmake/gcc.cmake @@ -98,6 +98,12 @@ if(CONFIG_COVERAGE_ALL) add_compile_options(-fprofile-arcs -ftest-coverage -fno-inline) endif() +# Instrumentation options + +if(CONFIG_ARCH_INSTRUMENT_ALL) + add_compile_options(-finstrument-functions) +endif() + # Optimization of unused sections if(CONFIG_DEBUG_OPT_UNUSED_SECTIONS)
