diff options
author | Elinor Fung <47805090+elinor-fung@users.noreply.github.com> | 2019-06-06 14:03:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-06 14:03:18 -0700 |
commit | a0486f5970ed63a7e7fb987f9a22fc8349574505 (patch) | |
tree | a3fbb230a1d01fac06648d5b2ee97c05e0dd7d6b /build-test.cmd | |
parent | ca0dfce733ed41503b70a0dec4358bf110255b9f (diff) | |
download | coreclr-a0486f5970ed63a7e7fb987f9a22fc8349574505.tar.gz coreclr-a0486f5970ed63a7e7fb987f9a22fc8349574505.tar.bz2 coreclr-a0486f5970ed63a7e7fb987f9a22fc8349574505.zip |
Fix initializing BuildTools when the Platform environment variable is set (#24998)
* Make build-test.cmd exit if init-tools.cmd fails
* Clear Platform variable before initializing BuildTools
Diffstat (limited to 'build-test.cmd')
-rw-r--r-- | build-test.cmd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build-test.cmd b/build-test.cmd index e1400c42d9..39c38d415e 100644 --- a/build-test.cmd +++ b/build-test.cmd @@ -166,6 +166,9 @@ REM === REM ========================================================================================= call "%__ProjectDir%\init-tools.cmd" +if NOT [%ERRORLEVEL%]==[0] ( + exit /b %ERRORLEVEL% +) @if defined _echo @echo on set "__ToolsDir=%__ProjectDir%\Tools" |