Occurrrence analysis improvements for NOINLINE functions
[ghc.git] / hadrian / 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 -XRecordWildCards ^
10 src\Main.hs ^
11 -threaded ^
12 -isrc ^
13 -i..\libraries\Cabal\Cabal ^
14 -rtsopts ^
15 -with-rtsopts=-I0 ^
16 -outputdir=bin ^
17 -j ^
18 -O ^
19 -o bin\hadrian
20
21 set hadrianArgs=--lint ^
22 --directory ^
23 ".." ^
24 %*
25
26 ghc %ghcArgs%
27
28 if %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
29
30 rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
31 set GHC_PACKAGE_PATH=
32 bin\hadrian %hadrianArgs%