[CI/Build] enable ccache/scccache for HIP builds (#8327)

This commit is contained in:
Daniele
2024-09-10 17:55:08 +02:00
committed by GitHub
parent da1a844e61
commit 6234385f4a

View File

@@ -170,14 +170,17 @@ class cmake_build_ext(build_ext):
if is_sccache_available():
cmake_args += [
'-DCMAKE_C_COMPILER_LAUNCHER=sccache',
'-DCMAKE_CXX_COMPILER_LAUNCHER=sccache',
'-DCMAKE_CUDA_COMPILER_LAUNCHER=sccache',
'-DCMAKE_C_COMPILER_LAUNCHER=sccache',
'-DCMAKE_HIP_COMPILER_LAUNCHER=sccache',
]
elif is_ccache_available():
cmake_args += [
'-DCMAKE_C_COMPILER_LAUNCHER=ccache',
'-DCMAKE_CXX_COMPILER_LAUNCHER=ccache',
'-DCMAKE_CUDA_COMPILER_LAUNCHER=ccache',
'-DCMAKE_HIP_COMPILER_LAUNCHER=ccache',
]
# Pass the python executable to cmake so it can find an exact