diff options
author | Neil Mitchell <ndmitchell@gmail.com> | 2019-02-07 14:49:33 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-02-09 12:22:30 -0500 |
commit | 9adb7f64b37122d391247aa80227f68b41c11c77 (patch) | |
tree | cd51d1f9609cb24fb92b5c33bc80204a923c7318 | |
parent | f4d8e907b6b2e4110e1c6a21b34b1b46566ff6d5 (diff) | |
download | haskell-9adb7f64b37122d391247aa80227f68b41c11c77.tar.gz |
Simplify the build.stack.bat script to use 'stack run'
-rw-r--r-- | hadrian/build.stack.bat | 8 |
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=.. -- %* |