From 219fab7b8b19e10beb7edd27babbff04e4f84f22 Mon Sep 17 00:00:00 2001 From: peterjc123 Date: Sat, 9 May 2020 00:34:43 +0800 Subject: [PATCH] Set SCCACHE_IDLE_TIMEOUT to INFINITE(0) on Windows (#441) --- conda/pytorch-nightly/bld.bat | 2 ++ windows/internal/setup.bat | 2 ++ 2 files changed, 4 insertions(+) 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