Skip to content

Commit

Permalink
[tools] fix ccache build
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33087 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
blogic committed Aug 10, 2012
1 parent 039dd74 commit 1156b14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/ccache/Makefile
Expand Up @@ -16,14 +16,16 @@ PKG_MD5SUM:=80a698c22d0b06b19c88ac58e8d8b632

include $(INCLUDE_DIR)/host-build.mk

HOSTCC:=$(HOSTCC_NOCACHE)

define Host/Install/ccache
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
$(CP) ./files/* $(STAGING_DIR_HOST)/bin/
endef

ifneq ($(strip $(shell which ccache >/dev/null && echo found)),found)
define Host/Compile
$(MAKE) CC="$(HOSTCC_NOCACHE)" -C $(HOST_BUILD_DIR)
$(MAKE) -C $(HOST_BUILD_DIR)
endef

define Host/Clean
Expand Down

0 comments on commit 1156b14

Please sign in to comment.