mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
build: configure CCACHE_BASEDIR for better ccache utilization
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4a8a93af96
commit
bab4c0543e
@@ -93,6 +93,7 @@ if [ "${BUILD_RPM}" == "1" ]; then
|
|||||||
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
||||||
ccache -z
|
ccache -z
|
||||||
fi
|
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[@]}"
|
rpmbuild --rebuild ${REPO_DIR}/../output/SRPMS/intel-level-zero-gpu-${VERSION}*.src.rpm "${build_args[@]}"
|
||||||
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
||||||
ccache -s
|
ccache -s
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ if [ "${BUILD_RPM}" == "1" ]; then
|
|||||||
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
||||||
ccache -z
|
ccache -z
|
||||||
fi
|
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[@]}"
|
rpmbuild --rebuild ${REPO_DIR}/../output/SRPMS/intel-opencl-${VERSION}*.src.rpm "${build_args[@]}"
|
||||||
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
if [ "${LOG_CCACHE_STATS}" == "1" ]; then
|
||||||
ccache -s
|
ccache -s
|
||||||
|
|||||||
Reference in New Issue
Block a user