Reset GHC_PACKAGE_PATH varialbe (5th try).
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Sat, 9 Jan 2016 19:10:44 +0000 (19:10 +0000)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Sat, 9 Jan 2016 19:10:44 +0000 (19:10 +0000)
See #110.

build.bat

index 2901686..07e355a 100644 (file)
--- a/build.bat
+++ b/build.bat
                ".."        ^\r
                %*\r
 \r
-@rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains\r
-@set GHC_PACKAGE_PATH=\r
 \r
-@ghc %ghcArgs% && .shake\build %shakeArgs%\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