Merge pull request #503 from snowleopard/angerman-patch-1
[hadrian.git] / build.bat
index 0cf778a..01a869f 100644 (file)
--- a/build.bat
+++ b/build.bat
@@ -1,28 +1,6 @@
-@cd %~dp0\r
-@mkdir .shake 2> nul\r
-\r
-@set ghcArgs=--make            ^\r
-             -Wall             ^\r
-             -fno-warn-name-shadowing ^\r
-             src/Main.hs       ^\r
-             -isrc             ^\r
-             -rtsopts          ^\r
-             -with-rtsopts=-I0 ^\r
-             -outputdir=.shake ^\r
-             -j                ^\r
-             -O                ^\r
-             -o .shake/build\r
-\r
-@set shakeArgs=--lint      ^\r
-               --directory ^\r
-               ".."        ^\r
-               %*\r
-\r
-\r
-@ghc %ghcArgs%\r
-\r
-@if %ERRORLEVEL% EQU 0 (\r
-    @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains\r
-    @set GHC_PACKAGE_PATH=\r
-    @.shake\build %shakeArgs%\r
-)\r
+@echo off
+setlocal
+cd %~dp0
+
+rem By default on Windows we build Hadrian using Stack
+./build.stack.bat %*