[commit: ghc] wip/jenkins: Fix windows paths (92d7640)

git at git.haskell.org git at git.haskell.org
Sat Jun 17 13:53:05 UTC 2017


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

On branch  : wip/jenkins
Link       : http://ghc.haskell.org/trac/ghc/changeset/92d7640c8d95081b17c2784c6d175469f8772081/ghc

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

commit 92d7640c8d95081b17c2784c6d175469f8772081
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Fri Jun 9 13:50:09 2017 -0400

    Fix windows paths


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

92d7640c8d95081b17c2784c6d175469f8772081
 Jenkinsfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 9a098e0..acaf373 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -108,18 +108,21 @@ def withMingw(String msystem, Closure f) {
   // Derived from msys2's /etc/msystem
   def msysRoot = 'C:\\msys64'
   if (msystem == 'MINGW32') {
-    prefix = '${msysRoot}\\mingw32'
+    prefix = "${msysRoot}\\mingw32"
     carch = 'i686'
+    ghcPath = '$HOME/ghc-8.0.2-i386/bin'
   } else if (msystem == 'MINGW64') {
-    prefix = '${msysRoot}\\mingw64'
+    prefix = "${msysRoot}\\mingw64"
     carch = 'x86_64'
+    ghcPath = '$HOME/ghc-8.0.2-x86_64/bin'
   } else {
     fail
   }
   chost = '${carch}-w64-mingw32'
 
   withEnv(["MSYSTEM=${msystem}",
-           "PATH+mingw=C:\\msys64\\mingw32\\bin:C:\\msys64\\home\\ben\\ghc-8.0.2-i386\\bin",
+           "PATH+mingw=${prefix}\\bin",
+           "PATH+ghc=${ghcPath}",
            "MSYSTEM_PREFIX=${prefix}",
            "MSYSTEM_CARCH=${carch}",
            "MSYSTEM_CHOST=${chost}",



More information about the ghc-commits mailing list