retry on flaky linker (#6880)

* retry on flaky linker
This commit is contained in:
Phil Christensen 2019-06-13 14:12:21 -07:00 committed by GitHub
parent eb6e282797
commit 7b41dc688a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,13 +57,15 @@ function(vcpkg_execute_build_process)
endif() endif()
if(out_contents MATCHES "LINK : fatal error LNK1102:" OR out_contents MATCHES " fatal error C1060: " if(out_contents MATCHES "LINK : fatal error LNK1102:" OR out_contents MATCHES " fatal error C1060: "
OR err_contents MATCHES "LINK : fatal error LNK1102:" OR err_contents MATCHES " fatal error C1060: ") OR err_contents MATCHES "LINK : fatal error LNK1102:" OR err_contents MATCHES " fatal error C1060: "
OR out_contents MATCHES "LINK : fatal error LNK1318: Unexpected PDB error; ACCESS_DENIED"
OR out_contents MATCHES "LINK : fatal error LNK1104:")
# The linker ran out of memory during execution. We will try continuing once more, with parallelism disabled. # The linker ran out of memory during execution. We will try continuing once more, with parallelism disabled.
message(STATUS "Restarting Build without parallelism because memory exceeded") message(STATUS "Restarting Build without parallelism because memory exceeded")
set(LOG_OUT "${CURRENT_BUILDTREES_DIR}/${_ebp_LOGNAME}-out-1.log") set(LOG_OUT "${CURRENT_BUILDTREES_DIR}/${_ebp_LOGNAME}-out-1.log")
set(LOG_ERR "${CURRENT_BUILDTREES_DIR}/${_ebp_LOGNAME}-err-1.log") set(LOG_ERR "${CURRENT_BUILDTREES_DIR}/${_ebp_LOGNAME}-err-1.log")
if(${_ebp_NO_PARALLEL_COMMAND}) if(_ebp_NO_PARALLEL_COMMAND)
execute_process( execute_process(
COMMAND ${_ebp_NO_PARALLEL_COMMAND} COMMAND ${_ebp_NO_PARALLEL_COMMAND}
WORKING_DIRECTORY ${_ebp_WORKING_DIRECTORY} WORKING_DIRECTORY ${_ebp_WORKING_DIRECTORY}