#143, turn of name shadowing warning
[hadrian.git] / build.bat
1 @mkdir .shake 2> nul
2
3 @set ghcArgs=--make ^
4 -Wall ^
5 -fno-warn-name-shadowing ^
6 src/Main.hs ^
7 -isrc ^
8 -rtsopts ^
9 -with-rtsopts=-I0 ^
10 -outputdir=.shake ^
11 -j ^
12 -O ^
13 -o .shake/build
14
15 @set shakeArgs=--lint ^
16 --directory ^
17 ".." ^
18 %*
19
20
21 @ghc %ghcArgs%
22
23 @if %ERRORLEVEL% EQU 0 (
24 @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
25 @set GHC_PACKAGE_PATH=
26 @.shake\build %shakeArgs%
27 )