Skip to content

Commit bab4c05

Browse files
build: configure CCACHE_BASEDIR for better ccache utilization
Signed-off-by: Artur Harasimiuk <[email protected]>
1 parent 4a8a93a commit bab4c05

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

scripts/packaging/l0_gpu_driver/build_l0_gpu_driver_rpm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ if [ "${BUILD_RPM}" == "1" ]; then
9393
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
9494
ccache -z
9595
fi
96+
export CCACHE_BASEDIR=$(readlink -m $BUILD_DIR/BUILD/compute-runtime-${VERSION}/)
9697
rpmbuild --rebuild ${REPO_DIR}/../output/SRPMS/intel-level-zero-gpu-${VERSION}*.src.rpm "${build_args[@]}"
9798
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
9899
ccache -s

scripts/packaging/opencl/build_opencl_rpm.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ if [ "${BUILD_RPM}" == "1" ]; then
9898
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
9999
ccache -z
100100
fi
101+
export CCACHE_BASEDIR=$(readlink -m $BUILD_DIR/BUILD/compute-runtime-${VERSION}/)
101102
rpmbuild --rebuild ${REPO_DIR}/../output/SRPMS/intel-opencl-${VERSION}*.src.rpm "${build_args[@]}"
102103
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
103104
ccache -s

0 commit comments

Comments
 (0)