summaryrefslogtreecommitdiff
path: root/hadrian/build.stack.bat
blob: 674375a3cf5c3b4bd98ef6bff10c0cab3ab496cf (plain)
1
2
3
4
5
6
7
8
9
10
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 ".." %*