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 ed1223746906b830a42df8d77914979f5a69e7ff Author: wangmingrong1 <[email protected]> AuthorDate: Thu Nov 19 11:15:02 2026 +0800 tools/gcov: find riscv-none-elf-gcov on RISC-V targets The NuttX CI RISC-V builds use the xPack toolchain, which installs gcov as riscv-none-elf-gcov. Since -t was removed, GCC_CROSS_PREFIXES is the only way the tool is resolved, so add that name to the EM_RISCV candidates instead of failing with "could not find gcov for riscv". Signed-off-by: wangmingrong1 <[email protected]> --- tools/gcov.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/gcov.py b/tools/gcov.py index 84fb4d0cf9e..14cf1097345 100755 --- a/tools/gcov.py +++ b/tools/gcov.py @@ -109,7 +109,11 @@ EM_TRICORE = 44 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_RISCV: [ + "riscv-none-elf-gcov", + "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"],
