make ccache detection more portable

This commit is contained in:
Vincent Sanders 2012-08-20 18:46:28 +01:00
parent dd6d24e83d
commit d9799299f8
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ endif
# CCACHE
ifeq ($(origin CCACHE),undefined)
CCACHE=$(shell ccache -V >/dev/null 2>&1 && echo ccache || echo)
CCACHE=$(word 1,$(shell ccache -V 2>/dev/null))
endif
CC := $(CCACHE) $(CC)