diff --git a/conda/pytorch-nightly/bld.bat b/conda/pytorch-nightly/bld.bat index ac6200b28..78cef768e 100644 --- a/conda/pytorch-nightly/bld.bat +++ b/conda/pytorch-nightly/bld.bat @@ -71,6 +71,8 @@ set CMAKE_GENERATOR=Ninja IF NOT "%USE_SCCACHE%" == "1" goto sccache_end +set SCCACHE_IDLE_TIMEOUT=0 + sccache --stop-server sccache --start-server sccache --zero-stats diff --git a/windows/internal/setup.bat b/windows/internal/setup.bat index 7b6a09000..24dedb2af 100755 --- a/windows/internal/setup.bat +++ b/windows/internal/setup.bat @@ -27,6 +27,8 @@ if "%CXX%"=="sccache-cl" goto sccache_start goto sccache_end :sccache_start +set SCCACHE_IDLE_TIMEOUT=0 + sccache --stop-server sccache --start-server sccache --zero-stats