[commit: ghc] wip/jenkins: Fix windows paths (dabd2ad)
git at git.haskell.org
git at git.haskell.org
Fri Jul 28 16:44:44 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/jenkins
Link : http://ghc.haskell.org/trac/ghc/changeset/dabd2ad0615a11c954f66e9dc6656a590806feea/ghc
>---------------------------------------------------------------
commit dabd2ad0615a11c954f66e9dc6656a590806feea
Author: Ben Gamari <ben at smart-cactus.org>
Date: Fri Jun 9 13:50:09 2017 -0400
Fix windows paths
>---------------------------------------------------------------
dabd2ad0615a11c954f66e9dc6656a590806feea
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