build: move the CCACHE_DIR to the build targets so that it doesn't interfere with a host ccache setup
SVN-Revision: 26181
This commit is contained in:
parent
784d808d07
commit
73c1dd9473
@ -90,6 +90,7 @@ define Build/Exports/Default
|
|||||||
$(1) : export CONFIG_SITE:=$$(CONFIG_SITE)
|
$(1) : export CONFIG_SITE:=$$(CONFIG_SITE)
|
||||||
$(1) : export PKG_CONFIG_PATH:=$$(PKG_CONFIG_PATH)
|
$(1) : export PKG_CONFIG_PATH:=$$(PKG_CONFIG_PATH)
|
||||||
$(1) : export PKG_CONFIG_LIBDIR:=$$(PKG_CONFIG_PATH)
|
$(1) : export PKG_CONFIG_LIBDIR:=$$(PKG_CONFIG_PATH)
|
||||||
|
$(1) : export CCACHE_DIR:=$(STAGING_DIR)/ccache
|
||||||
endef
|
endef
|
||||||
Build/Exports=$(Build/Exports/Default)
|
Build/Exports=$(Build/Exports/Default)
|
||||||
|
|
||||||
|
2
rules.mk
2
rules.mk
@ -178,8 +178,6 @@ INSTALL_DATA:=install -m0644
|
|||||||
INSTALL_CONF:=install -m0600
|
INSTALL_CONF:=install -m0600
|
||||||
|
|
||||||
ifneq ($(CONFIG_CCACHE),)
|
ifneq ($(CONFIG_CCACHE),)
|
||||||
# FIXME: move this variable to a better location
|
|
||||||
export CCACHE_DIR=$(STAGING_DIR)/ccache
|
|
||||||
TARGET_CC:= ccache $(TARGET_CC)
|
TARGET_CC:= ccache $(TARGET_CC)
|
||||||
TARGET_CXX:= ccache $(TARGET_CXX)
|
TARGET_CXX:= ccache $(TARGET_CXX)
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user