[commit: ghc] wip/nfs-locking: Reset GHC_PACKAGE_PATH varialbe (5th try). (9ba5daa)

git at git.haskell.org git at git.haskell.org
Fri Oct 27 00:04:59 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/nfs-locking
Link       : http://ghc.haskell.org/trac/ghc/changeset/9ba5daa863d59d5b2a7bd8fabdd9caa0b8fe4521/ghc

>---------------------------------------------------------------

commit 9ba5daa863d59d5b2a7bd8fabdd9caa0b8fe4521
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Sat Jan 9 19:10:44 2016 +0000

    Reset GHC_PACKAGE_PATH varialbe (5th try).
    
    See #110.


>---------------------------------------------------------------

9ba5daa863d59d5b2a7bd8fabdd9caa0b8fe4521
 build.bat | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/build.bat b/build.bat
index 2901686..07e355a 100644
--- a/build.bat
+++ b/build.bat
@@ -16,7 +16,11 @@
                ".."        ^
                %*
 
- at rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
- at set GHC_PACKAGE_PATH=
 
- at ghc %ghcArgs% && .shake\build %shakeArgs%
+ at ghc %ghcArgs%
+
+ at if %ERRORLEVEL% EQU 0 (
+    @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
+    @set GHC_PACKAGE_PATH=
+    @.shake\build %shakeArgs%
+)



More information about the ghc-commits mailing list