build: configure CCACHE_BASEDIR for better ccache utilization

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk 2022-07-01 10:44:37 +00:00 committed by Compute-Runtime-Automation
parent 4a8a93af96
commit bab4c0543e
2 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,7 @@ if [ "${BUILD_RPM}" == "1" ]; then
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
ccache -z
fi
export CCACHE_BASEDIR=$(readlink -m $BUILD_DIR/BUILD/compute-runtime-${VERSION}/)
rpmbuild --rebuild ${REPO_DIR}/../output/SRPMS/intel-level-zero-gpu-${VERSION}*.src.rpm "${build_args[@]}"
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
ccache -s

View File

@ -98,6 +98,7 @@ if [ "${BUILD_RPM}" == "1" ]; then
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
ccache -z
fi
export CCACHE_BASEDIR=$(readlink -m $BUILD_DIR/BUILD/compute-runtime-${VERSION}/)
rpmbuild --rebuild ${REPO_DIR}/../output/SRPMS/intel-opencl-${VERSION}*.src.rpm "${build_args[@]}"
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
ccache -s