4cbbc4277a8b1a46ef5d67a874705d69e68de959
[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 @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
20 @if defined GHC_PACKAGE_PATH ( set GHC_PACKAGE_PATH )
21
22 @ghc %ghcArgs% && .shake\build %shakeArgs%