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 604a3605847b13f65862197f94c8e8e2fd662b54
Author: wangmingrong1 <[email protected]>
AuthorDate: Mon Nov 2 16:08:35 2026 +0800

    tools/gcov: find tricore-elf-gcov on TriCore targets
    
    TriCore builds keep gcov under a tricore-elf- prefix, so extend the
    cross-gcov lookup to that triple instead of failing to find a tool for
    EM_TRICORE.
    
    Signed-off-by: wangmingrong1 <[email protected]>
---
 tools/gcov.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/gcov.py b/tools/gcov.py
index d128d7f461f..32dbf114d18 100755
--- a/tools/gcov.py
+++ b/tools/gcov.py
@@ -92,6 +92,7 @@ EM_ARM = 40
 EM_AARCH64 = 183
 EM_RISCV = 243
 EM_XTENSA = 94
+EM_TRICORE = 44
 
 # Candidate cross-compile gcov binary names per architecture, in priority
 # order. The first one found on PATH is used.
@@ -99,6 +100,7 @@ GCC_CROSS_PREFIXES = {
     EM_AARCH64: ["aarch64-none-elf-gcov", "aarch64-linux-gnu-gcov"],
     EM_ARM: ["arm-none-eabi-gcov", "arm-linux-gnueabi-gcov"],
     EM_RISCV: ["riscv64-unknown-elf-gcov", "riscv32-unknown-elf-gcov"],
+    EM_TRICORE: ["tricore-elf-gcov"],
     EM_XTENSA: ["xtensa-esp32-elf-gcov", "xtensa-esp32s3-elf-gcov"],
     EM_X86_64: ["gcov"],
     EM_386: ["gcov"],

Reply via email to