Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
obsidiansystems
GHC
Commits
4bd03127
Commit
4bd03127
authored
Nov 20, 2009
by
Ian Lynagh
Browse files
Use the ghc-perl tarball on Windows, instead of the msys one
parent
abd0df2e
Changes
2
Hide whitespace changes
Inline
Side-by-side
compiler/main/SysTools.lhs
View file @
4bd03127
...
...
@@ -159,6 +159,7 @@ initSysTools mbMinusB dflags0
; let installed :: FilePath -> FilePath
installed file = top_dir </> file
installed_mingw_bin file = top_dir </> ".." </> "mingw" </> "bin" </> file
installed_perl_bin file = top_dir </> ".." </> "perl" </> file
; let pkgconfig_path = installed "package.conf.d"
ghc_usage_msg_path = installed "ghc-usage.txt"
...
...
@@ -184,7 +185,7 @@ initSysTools mbMinusB dflags0
| isWindowsHost = installed_mingw_bin "gcc"
| otherwise = cGCC
perl_path
| isWindowsHost = installed_
mingw
_bin cGHC_PERL
| isWindowsHost = installed_
perl
_bin cGHC_PERL
| otherwise = cGHC_PERL
-- 'touch' is a GHC util for Windows
touch_path
...
...
configure.ac
View file @
4bd03127
...
...
@@ -405,14 +405,25 @@ then
tar -zxf ../../ghc-tarballs/mingw/gcc-core*.tar.gz &&
tar -jxf ../../ghc-tarballs/mingw/libcrypt*.tar.bz2 &&
tar -zxf ../../ghc-tarballs/mingw/mingw-runtime*.tar.gz &&
tar -zxf ../../ghc-tarballs/mingw/msysCORE*.tar.gz &&
tar -jxf ../../ghc-tarballs/mingw/perl*.tar.bz2 &&
tar -zxf ../../ghc-tarballs/mingw/w32api*.tar.gz &&
mv bin/gcc.exe bin/realgcc.exe
)
inplace/mingw/bin/realgcc.exe driver/gcc/gcc.c driver/utils/getLocation.c -Idriver/utils -o inplace/mingw/bin/gcc.exe
AC_MSG_NOTICE([In-tree mingw tree created])
fi
if ! test -d inplace/perl ||
test inplace/perl -ot ghc-tarballs/perl/ghc-perl*.tar.gz
then
AC_MSG_NOTICE([Making in-tree perl tree])
rm -rf inplace/perl
mkdir inplace
mkdir inplace/perl
(
cd inplace/perl &&
tar -zxf ../../ghc-tarballs/perl/ghc-perl*.tar.gz
)
AC_MSG_NOTICE([In-tree perl tree created])
fi
fi
dnl ** Which gcc to use?
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment