Skip to content

Commit 070052c

Browse files
authored
Use sccache on all CI platforms (KhronosGroup#2014)
MSVC on Windows was previously omitted from the list of CI platforms that use sccache. Unify the CMAKE_CACHE_OPTIONS used for all CI platforms. In the case of a 100% cache hit, this cuts down the average checks time from 8 minutes to 4 minutes, example: https://github.com/ahesham-arm/OpenCL-CTS/actions/runs/9896449792
1 parent 39fa6e6 commit 070052c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

presubmit.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,12 @@ mkdir build
8787
cd build
8888
if [[ ${RUNNER_OS} == "Windows" ]]; then
8989
CMAKE_OPENCL_LIBRARIES_OPTION="OpenCL"
90-
CMAKE_CACHE_OPTIONS=""
9190
else
9291
CMAKE_OPENCL_LIBRARIES_OPTION="-lOpenCL -lpthread"
93-
CMAKE_CACHE_OPTIONS="-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache"
9492
fi
9593
cmake .. -G Ninja \
9694
-DCMAKE_BUILD_TYPE="${BUILD_CONFIG}" \
97-
${CMAKE_CACHE_OPTIONS} \
95+
-DCMAKE_CACHE_OPTIONS="-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache" \
9896
-DCL_INCLUDE_DIR=${TOP}/OpenCL-Headers \
9997
-DCL_LIB_DIR=${TOP}/OpenCL-ICD-Loader/build \
10098
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \

0 commit comments

Comments
 (0)