[commit: ghc] wip/nfs-locking: Ensure that if ghc compilation fails then we return a non-zero error code from build.bat (e40e2e0)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:04:06 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/e40e2e0e80d81f88d374a6e917b660befdde46b4/ghc

>---------------------------------------------------------------

commit e40e2e0e80d81f88d374a6e917b660befdde46b4
Author: Neil Mitchell <ndmitchell at gmail.com>
Date:   Wed Feb 17 16:24:19 2016 +0000

    Ensure that if ghc compilation fails then we return a non-zero error code from build.bat


>---------------------------------------------------------------

e40e2e0e80d81f88d374a6e917b660befdde46b4
 build.bat | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/build.bat b/build.bat
index 348537d..10a6969 100644
--- a/build.bat
+++ b/build.bat
@@ -21,8 +21,8 @@
 
 @ghc %ghcArgs%
 
- at if %ERRORLEVEL% EQU 0 (
-    @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
-    @set GHC_PACKAGE_PATH=
-    @.shake\build %shakeArgs%
-)
+ at if %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
+
+ at rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
+ at set GHC_PACKAGE_PATH=
+ at .shake\build %shakeArgs%



More information about the ghc-commits mailing list