Fix hadrian prof flavour so that it builds a profiled version of GHC
[ghc.git] / hadrian / build.stack.bat
1 @echo off
2 setlocal
3 rem Change the current directory to the one containing this script
4 cd %~dp0
6 rem Build Hadrian and dependencies and exit the script if the build failed
7 stack build
8 if %errorlevel% neq 0 exit /B %errorlevel%
10 rem Run Hadrian in GHC top directory forwarding additional user arguments
11 stack exec hadrian -- --directory ".." %*