diff --git a/makefiles/arch/riscv.inc.mk b/makefiles/arch/riscv.inc.mk index e4e0dedad7..6d22f4e501 100644 --- a/makefiles/arch/riscv.inc.mk +++ b/makefiles/arch/riscv.inc.mk @@ -25,7 +25,7 @@ TARGET_ARCH_RISCV ?= \ $(subst -gcc,,\ $(notdir \ $(word 1,\ - $(foreach triple,$(_TRIPLES_TO_TEST),$(shell which $(triple)-gcc)))))) + $(foreach triple,$(_TRIPLES_TO_TEST),$(shell which $(triple)-gcc 2> /dev/null)))))) TARGET_ARCH ?= $(TARGET_ARCH_RISCV)