diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-25 14:57:53 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2018-01-25 14:57:53 -0800 |
| commit | edcc8e2c364b2030e4f542faf05b4d36220083e9 (patch) | |
| tree | fd75755e6494f20da641f589b1d4b5476d02d42f /scripts | |
| parent | 89addaa7a52e46014a3c6996ca3a093e9f5fd4d0 (diff) | |
| download | vcpkg-edcc8e2c364b2030e4f542faf05b4d36220083e9.tar.gz vcpkg-edcc8e2c364b2030e4f542faf05b4d36220083e9.zip | |
[bootstrap] Exit fast(er) if msbuild fails
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/bootstrap.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index a50d0dde1..3e886b26a 100644 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -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 |
