[commit: ghc] wip/T15449, wip/T16188, wip/llvm-configure-opts: Simplify the build.stack.bat script to use 'stack run' (9adb7f6)

git at git.haskell.org git at git.haskell.org
Sun Feb 10 21:31:18 UTC 2019


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

On branches: wip/T15449,wip/T16188,wip/llvm-configure-opts
Link       : http://ghc.haskell.org/trac/ghc/changeset/9adb7f64b37122d391247aa80227f68b41c11c77/ghc

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

commit 9adb7f64b37122d391247aa80227f68b41c11c77
Author: Neil Mitchell <ndmitchell at gmail.com>
Date:   Thu Feb 7 14:49:33 2019 +0000

    Simplify the build.stack.bat script to use 'stack run'


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

9adb7f64b37122d391247aa80227f68b41c11c77
 hadrian/build.stack.bat | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/hadrian/build.stack.bat b/hadrian/build.stack.bat
index 642ab06..09bfd95 100644
--- a/hadrian/build.stack.bat
+++ b/hadrian/build.stack.bat
@@ -3,9 +3,5 @@ setlocal
 rem Change the current directory to the one containing this script
 cd %~dp0
 
-rem Build Hadrian and dependencies and exit the script if the build failed
-stack build
-if %errorlevel% neq 0 exit /B %errorlevel%
-
-rem Run Hadrian in GHC top directory forwarding additional user arguments
-stack exec hadrian -- --directory ".." %*
+rem Build and run Hadrian in GHC top directory forwarding additional user arguments
+stack run hadrian --cwd=.. -- %*



More information about the ghc-commits mailing list