未验证 提交 1eb927f9 编写于 作者: Z Zhou Wei 提交者: GitHub

Restore the third-party library cache for windows (#31811)

上级 3f66e7de
...@@ -61,7 +61,6 @@ if(WITH_MUSL) ...@@ -61,7 +61,6 @@ if(WITH_MUSL)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=pessimizing-move -Wno-error=deprecated-copy") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=pessimizing-move -Wno-error=deprecated-copy")
endif() endif()
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zm1000 /fp:fast")
if(WIN32) if(WIN32)
option(MSVC_STATIC_CRT "use static C Runtime library by default" ON) option(MSVC_STATIC_CRT "use static C Runtime library by default" ON)
......
...@@ -30,10 +30,6 @@ taskkill /f /im op_function_generator.exe ...@@ -30,10 +30,6 @@ taskkill /f /im op_function_generator.exe
wmic process where name="op_function_generator.exe" call terminate wmic process where name="op_function_generator.exe" call terminate
taskkill /f /im python.exe 2>NUL taskkill /f /im python.exe 2>NUL
:: TODO: Temporarily,REMOVE after VS2017 is stable.
set WITH_TPCACHE=OFF
rmdir %cache_dir%\third_party_GPU /s/q
rmdir %cache_dir%\third_party /s/q
rem ------initialize common variable------ rem ------initialize common variable------
if not defined GENERATOR set GENERATOR="Visual Studio 15 2017 Win64" if not defined GENERATOR set GENERATOR="Visual Studio 15 2017 Win64"
...@@ -85,7 +81,7 @@ git show-ref --verify --quiet refs/heads/last_pr ...@@ -85,7 +81,7 @@ git show-ref --verify --quiet refs/heads/last_pr
if %ERRORLEVEL% EQU 0 ( if %ERRORLEVEL% EQU 0 (
git diff HEAD last_pr --stat --name-only git diff HEAD last_pr --stat --name-only
git diff HEAD last_pr --stat --name-only | findstr "setup.py.in" git diff HEAD last_pr --stat --name-only | findstr "setup.py.in"
if %ERRORLEVEL% EQU 0 ( if !ERRORLEVEL! EQU 0 (
rmdir build /s/q rmdir build /s/q
) )
git branch -D last_pr git branch -D last_pr
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册