[commit: ghc] wip/nfs-locking: Exit the build script if Hadrian cannot be built (f937d80)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 01:08:30 UTC 2017


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

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

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

commit f937d806ea8397132405eeede17f2662d8b0c85f
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Thu Sep 1 17:58:44 2016 +0100

    Exit the build script if Hadrian cannot be built


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

f937d806ea8397132405eeede17f2662d8b0c85f
 build.stack.bat | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/build.stack.bat b/build.stack.bat
index 3586290..919854e 100644
--- a/build.stack.bat
+++ b/build.stack.bat
@@ -1,8 +1,9 @@
 @rem Change the current directory to the one containing this script
 @cd %~dp0
 
- at rem Build Hadrian and dependencies
+ at rem Build Hadrian and dependencies and exit the script if the build failed
 @stack build
+ at if %errorlevel% neq 0 exit /B %errorlevel%
 
 @rem Run Hadrian in GHC top directory forwarding additional user arguments
 @stack exec hadrian -- --lint --directory ".." %*



More information about the ghc-commits mailing list