From d48bd8708b48c2095db776dd0592b0096c4ae2a4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 25 May 2015 23:02:23 +1000 Subject: [PATCH] build: allow ccache to be found on windows cygwin --- mk/find_tools.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mk/find_tools.mk b/mk/find_tools.mk index cc9fce5278..5be93efd36 100644 --- a/mk/find_tools.mk +++ b/mk/find_tools.mk @@ -18,8 +18,8 @@ ifeq ($(SYSTYPE),Linux) FIND_TOOL = $(firstword $(wildcard $(addsuffix /$(1),$(TOOLPATH)))) endif ifeq ($(findstring CYGWIN, $(SYSTYPE)),CYGWIN) - TOOLPATH := $(ARDUINO)/hardware/tools/avr/bin - FIND_TOOL = $(firstword $(wildcard $(addsuffix /$(1).exe,$(TOOLPATH)))) + TOOLPATH := $(subst :, ,$(PATH)) + FIND_TOOL = $(firstword $(wildcard $(addsuffix /$(1).exe,$(TOOLPATH)))) endif ifeq ($(findstring MINGW, $(SYSTYPE)),MINGW) # expect that tools are on the path