mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 15:17:56 +08:00
[bootstrap] Exit fast(er) if msbuild fails
This commit is contained in:
parent
89addaa7a5
commit
edcc8e2c36
@ -56,9 +56,9 @@ try
|
||||
"dirs.proj") -join " "
|
||||
|
||||
# vcpkgInvokeCommandClean cmd "/c echo %PATH%"
|
||||
vcpkgInvokeCommandClean $msbuildExe $arguments
|
||||
$ec = vcpkgInvokeCommandClean $msbuildExe $arguments
|
||||
|
||||
if ($LASTEXITCODE -ne 0)
|
||||
if ($ec -ne 0)
|
||||
{
|
||||
Write-Error "Building vcpkg.exe failed. Please ensure you have installed Visual Studio with the Desktop C++ workload and the Windows SDK for Desktop C++."
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user