Fix errorlevel returned by kotlinc-*.bat scripts

Propagate errorlevel returned as an exit code from the compiler to the outside
world.

This may not work on Windows XP or earlier, but is required for Windows 7+
This commit is contained in:
Alexander Udalov
2014-06-26 01:55:18 +04:00
parent 47f4bbedda
commit d4c792d0ee
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ if "%_PROFILE_PRELOADER%"=="time" (
org.jetbrains.jet.preloading.Preloader "%_KOTLIN_HOME%\lib\kotlin-compiler.jar;%_KOTLIN_HOME%\lib\kotlin-runtime.jar" ^
org.jetbrains.jet.cli.js.K2JSCompiler 4096 %_PROFILE_PRELOADER% %*
)
exit %ERRORLEVEL%
exit /b %ERRORLEVEL%
goto end
rem ##########################################################################
+1 -1
View File
@@ -42,7 +42,7 @@ if "%_PROFILE_PRELOADER%"=="time" (
org.jetbrains.jet.preloading.Preloader "%_KOTLIN_HOME%\lib\kotlin-compiler.jar;%_KOTLIN_HOME%\lib\kotlin-runtime.jar" ^
org.jetbrains.jet.cli.jvm.K2JVMCompiler 4096 %_PROFILE_PRELOADER% %*
)
exit %ERRORLEVEL%
exit /b %ERRORLEVEL%
goto end
rem ##########################################################################