diff --git a/presubmit.sh b/presubmit.sh index 23e1e9a3b7..b519d68388 100755 --- a/presubmit.sh +++ b/presubmit.sh @@ -87,14 +87,12 @@ mkdir build cd build if [[ ${RUNNER_OS} == "Windows" ]]; then CMAKE_OPENCL_LIBRARIES_OPTION="OpenCL" - CMAKE_CACHE_OPTIONS="" else CMAKE_OPENCL_LIBRARIES_OPTION="-lOpenCL -lpthread" - CMAKE_CACHE_OPTIONS="-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache" fi cmake .. -G Ninja \ -DCMAKE_BUILD_TYPE="${BUILD_CONFIG}" \ - ${CMAKE_CACHE_OPTIONS} \ + -DCMAKE_CACHE_OPTIONS="-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache" \ -DCL_INCLUDE_DIR=${TOP}/OpenCL-Headers \ -DCL_LIB_DIR=${TOP}/OpenCL-ICD-Loader/build \ -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \