From 8bc4d854c816e1271fecfedb34c8a7b113564aa1 Mon Sep 17 00:00:00 2001 From: Zhou Wei <1183042833@qq.com> Date: Fri, 13 Aug 2021 15:12:02 +0800 Subject: [PATCH] Support sccache distributed storage on windows (#34879) --- paddle/scripts/paddle_build.bat | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index a70c9ca996..a5b5a3705e 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -161,13 +161,23 @@ if "%WITH_SCCACHE%"=="ON" ( del D:\sccache\sccache_log.txt cmd /C sccache -V || call :install_sccache sccache --stop-server 2> NUL + + :: Localy storage on windows if not exist D:\sccache mkdir D:\sccache set SCCACHE_DIR=D:\sccache\.cache - :: sccache will shut down if a source file takes more than 10 mins to compile + + :: Sccache will shut down if a source file takes more than 10 mins to compile set SCCACHE_IDLE_TIMEOUT=0 - set SCCACHE_CACHE_SIZE=30G + set SCCACHE_CACHE_SIZE=100G set SCCACHE_ERROR_LOG=D:\sccache\sccache_log.txt set SCCACHE_LOG=quiet + + :: Distributed storage on windows + set SCCACHE_ENDPOINT=s3.bj.bcebos.com + set SCCACHE_BUCKET=paddle-windows + set SCCACHE_S3_KEY_PREFIX=sccache/ + set SCCACHE_S3_USE_SSL=true + sccache --start-server sccache -z goto :CASE_%1 -- GitLab