Drop redundant 'build' component in build paths, rename contextPath to buildPath.
[ghc.git] / build.bat
1 @cd %~dp0
2 @mkdir .shake 2> nul
3
4 @set ghcArgs=--make ^
5 -Wall ^
6 -fno-warn-name-shadowing ^
7 -XRecordWildCards ^
8 src/Main.hs ^
9 -isrc ^
10 -rtsopts ^
11 -with-rtsopts=-I0 ^
12 -outputdir=.shake ^
13 -j ^
14 -O ^
15 -o .shake/build
16
17 @set shakeArgs=--lint ^
18 --directory ^
19 ".." ^
20 %*
21
22
23 @ghc %ghcArgs%
24
25 @if %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
26
27 @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
28 @set GHC_PACKAGE_PATH=
29 @.shake\build %shakeArgs%