From f41104efa3b4f6422f80b321df45f540f2d893b6 Mon Sep 17 00:00:00 2001 From: Zhou Wei <52485244+zhouwei25@users.noreply.github.com> Date: Tue, 3 Nov 2020 10:09:41 +0800 Subject: [PATCH] fix compile out of memory temporary (#28346) --- cmake/external/pybind11.cmake | 1 + paddle/scripts/paddle_build.bat | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/external/pybind11.cmake b/cmake/external/pybind11.cmake index 8722b9003b..05cc77f23b 100644 --- a/cmake/external/pybind11.cmake +++ b/cmake/external/pybind11.cmake @@ -34,6 +34,7 @@ ExternalProject_Add( "${PYBIND_DOWNLOAD_CMD}" PREFIX ${PYBIND_PREFIX_DIR} SOURCE_DIR ${PYBIND_SOURCE_DIR} + UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "" diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 6725abefa8..296deed1c8 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -248,7 +248,8 @@ echo Build third_party successfully! set build_times=1 :build_paddle echo Build Paddle the %build_times% time: -msbuild /m:%PARALLEL_PROJECT_COUNT% /p:TrackFileAccess=false /p:CLToolExe=clcache.exe /p:CLToolPath=%PYTHON_ROOT%\Scripts /p:Configuration=Release /verbosity:minimal paddle.sln +::msbuild /m:%PARALLEL_PROJECT_COUNT% /p:TrackFileAccess=false /p:CLToolExe=clcache.exe /p:CLToolPath=%PYTHON_ROOT%\Scripts /p:Configuration=Release /verbosity:minimal paddle.sln +msbuild /m:%PARALLEL_PROJECT_COUNT% /p:Configuration=Release /verbosity:minimal paddle.sln if %ERRORLEVEL% NEQ 0 ( set /a build_times=%build_times%+1 if %build_times% GTR 1 ( -- GitLab