未验证 提交 8bc4d854 编写于 作者: zhouweiwei2014's avatar zhouweiwei2014 提交者: GitHub

Support sccache distributed storage on windows (#34879)

上级 5b86b999
...@@ -161,13 +161,23 @@ if "%WITH_SCCACHE%"=="ON" ( ...@@ -161,13 +161,23 @@ if "%WITH_SCCACHE%"=="ON" (
del D:\sccache\sccache_log.txt del D:\sccache\sccache_log.txt
cmd /C sccache -V || call :install_sccache cmd /C sccache -V || call :install_sccache
sccache --stop-server 2> NUL sccache --stop-server 2> NUL
:: Localy storage on windows
if not exist D:\sccache mkdir D:\sccache if not exist D:\sccache mkdir D:\sccache
set SCCACHE_DIR=D:\sccache\.cache 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_IDLE_TIMEOUT=0
set SCCACHE_CACHE_SIZE=30G set SCCACHE_CACHE_SIZE=100G
set SCCACHE_ERROR_LOG=D:\sccache\sccache_log.txt set SCCACHE_ERROR_LOG=D:\sccache\sccache_log.txt
set SCCACHE_LOG=quiet 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 --start-server
sccache -z sccache -z
goto :CASE_%1 goto :CASE_%1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册