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