summaryrefslogtreecommitdiff
path: root/hadrian/build.stack.bat
diff options
context:
space:
mode:
authorAndrey Mokhov <andrey.mokhov@gmail.com>2017-11-06 22:59:38 +0000
committerAndrey Mokhov <andrey.mokhov@gmail.com>2017-11-06 22:59:38 +0000
commit5cee48036ed69ae298a599d43cf72e0fe73e3b4e (patch)
tree5fe732c738a769d02e732469f4ffecd4ac9e191a /hadrian/build.stack.bat
parent275ac8ef0a0081f16abbfb8934e10cf271573768 (diff)
parent7b0b9f603bb1215e2b7af23c2404d637b95a4988 (diff)
downloadhaskell-5cee48036ed69ae298a599d43cf72e0fe73e3b4e.tar.gz
Merge commit '7b0b9f603bb1215e2b7af23c2404d637b95a4988' as 'hadrian'
Diffstat (limited to 'hadrian/build.stack.bat')
-rw-r--r--hadrian/build.stack.bat11
1 files changed, 11 insertions, 0 deletions
diff --git a/hadrian/build.stack.bat b/hadrian/build.stack.bat
new file mode 100644
index 0000000000..674375a3cf
--- /dev/null
+++ b/hadrian/build.stack.bat
@@ -0,0 +1,11 @@
+@echo off
+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 -- --lint --directory ".." %*