Verified Commit 8defe263 authored by Michal Hrusecky's avatar Michal Hrusecky 🦎

ccache: Allow to override directory with ccache

parent 9013da35
......@@ -134,7 +134,9 @@ if [ -d .git ] ; then
fi
make clean
[ -z "$BUILD_ALL" ] || make dirclean
make "$@" PKG_BRANCH=${PKG_BRANCH/-/}
set -- "$@" PKG_BRANCH=${PKG_BRANCH/-/}
[ -z "$PERSISTENT_CCACHE" ] || set -- "$@" CCACHE_DIR="`pwd`/ccache" CCACHE_HOST_DIR="`pwd`/ccache-host"
make "$@"
# Nice junit export
mkdir -p logs
cat > logs/junit.xml << EOF
......
......@@ -131,7 +131,7 @@ define Host/Exports/Default
$(1) : export STAGING_PREFIX=$$(STAGING_DIR_HOST)
$(1) : export PKG_CONFIG_PATH=$$(STAGING_DIR_HOST)/lib/pkgconfig
$(1) : export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig
$(1) : export CCACHE_DIR:=$(STAGING_DIR_HOST)/ccache
$(1) : export CCACHE_DIR:=$(if $(CCACHE_HOST_DIR),$(CCACHE_HOST_DIR),$(STAGING_DIR_HOST)/ccache)
endef
Host/Exports=$(Host/Exports/Default)
......
......@@ -188,7 +188,7 @@ define Build/Exports/Default
$(1) : export CONFIG_SITE:=$$(CONFIG_SITE)
$(1) : export PKG_CONFIG_PATH:=$$(PKG_CONFIG_PATH)
$(1) : export PKG_CONFIG_LIBDIR:=$$(PKG_CONFIG_PATH)
$(1) : export CCACHE_DIR:=$(STAGING_DIR)/ccache
$(1) : export CCACHE_DIR:=$(if $(CCACHE_DIR),$(CCACHE_DIR),$(STAGING_DIR)/ccache)
endef
Build/Exports=$(Build/Exports/Default)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment