Fix redundant import, minor revision
[hadrian.git] / build.global-db.bat
1 @echo off
2 setlocal
3 cd %~dp0
4 mkdir bin 2> nul
5
6 set ghcArgs=--make ^
7 -Wall ^
8 -fno-warn-name-shadowing ^
9 -XDeriveGeneric ^
10 -XFlexibleInstances ^
11 -XGeneralizedNewtypeDeriving ^
12 -XLambdaCase ^
13 -XRecordWildCards ^
14 -XScopedTypeVariables ^
15 -XTupleSections ^
16 src\Main.hs ^
17 -threaded ^
18 -isrc ^
19 -i..\libraries\Cabal\Cabal ^
20 -rtsopts ^
21 -with-rtsopts=-I0 ^
22 -outputdir=bin ^
23 -j ^
24 -O ^
25 -o bin\hadrian
26
27 set hadrianArgs=--lint ^
28 --directory ^
29 ".." ^
30 %*
31
32 ghc %ghcArgs%
33
34 if %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
35
36 rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
37 set GHC_PACKAGE_PATH=
38 bin\hadrian %hadrianArgs%