diff options
Diffstat (limited to 'tests/src/CLRTest.Execute.Batch.targets')
-rw-r--r-- | tests/src/CLRTest.Execute.Batch.targets | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/CLRTest.Execute.Batch.targets b/tests/src/CLRTest.Execute.Batch.targets index b16e648908..db2a17425d 100644 --- a/tests/src/CLRTest.Execute.Batch.targets +++ b/tests/src/CLRTest.Execute.Batch.targets @@ -214,7 +214,7 @@ set Assemblies=-a System.Private.CoreLib IF defined DoLink ( IF NOT EXIST !ILLINK! ( - ECHO ILLink [%ILLINK%] Not Found + ECHO ILLink executable [%ILLINK%] Invalid Exit /b 1 ) @@ -237,8 +237,10 @@ IF defined DoLink ( ECHO %ILLINK% -out %LinkBin% -d %CORE_ROOT% -c link -l none -t !Assemblies! !ReflectionRoots! %ILLINK% -out %LinkBin% -d %CORE_ROOT% -c link -l none -t !Assemblies! !ReflectionRoots! IF NOT "!ERRORLEVEL!"=="0" ( - ECHO EXECUTION OF %DOTNETLINK% - FAILED !ERRORLEVEL! - IF EXIST %LinkBin% rmdir /s /q %LinkBin% + ECHO ILLINK FAILED !ERRORLEVEL! + IF NOT defined KeepLinkedBinaries ( + IF EXIST %LinkBin% rmdir /s /q %LinkBin% + ) Exit /b 1 ) |