From a0d7d92883d1e6cd336fa9d331102b186d70d1f9 Mon Sep 17 00:00:00 2001 From: Anders Hoglund Date: Fri, 15 Jul 2016 14:05:38 +0100 Subject: [PATCH] Fix for ccache detection problem on cygwin. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 90a221d2a..281b169c6 100644 --- a/Makefile +++ b/Makefile @@ -548,8 +548,8 @@ VPATH := $(VPATH):$(STDPERIPH_DIR)/src # Find out if ccache is installed on the system CCACHE := ccache -RESULT = $(shell which $(CCACHE)) -ifeq ($(RESULT),) +RESULT = $(shell (which $(CCACHE) > /dev/null 2>&1; echo $$?) ) +ifneq ($(RESULT),0) CCACHE := endif