summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Mitchell <ndmitchell@gmail.com>2019-02-07 14:49:33 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-02-09 12:22:30 -0500
commit9adb7f64b37122d391247aa80227f68b41c11c77 (patch)
treecd51d1f9609cb24fb92b5c33bc80204a923c7318
parentf4d8e907b6b2e4110e1c6a21b34b1b46566ff6d5 (diff)
downloadhaskell-9adb7f64b37122d391247aa80227f68b41c11c77.tar.gz
Simplify the build.stack.bat script to use 'stack run'
-rw-r--r--hadrian/build.stack.bat8
1 files changed, 2 insertions, 6 deletions
diff --git a/hadrian/build.stack.bat b/hadrian/build.stack.bat
index 642ab0639a..09bfd9561e 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=.. -- %*