Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex D
GHC
Commits
7c987d10
Commit
7c987d10
authored
Jun 17, 2012
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to using the 'rubenvb' mingw builds
parent
d0bfa810
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
17 deletions
+15
-17
aclocal.m4
aclocal.m4
+5
-10
configure.ac
configure.ac
+3
-4
mk/config.mk.in
mk/config.mk.in
+3
-3
rts/PosixSource.h
rts/PosixSource.h
+4
-0
No files found.
aclocal.m4
View file @
7c987d10
...
@@ -363,18 +363,13 @@ AC_DEFUN([FP_SETTINGS],
...
@@ -363,18 +363,13 @@ AC_DEFUN([FP_SETTINGS],
[
[
if test "$windows" = YES
if test "$windows" = YES
then
then
if test "$HostArch" = "x86_64"
mingw_bin_prefix=mingw/bin/
then
SettingsCCompilerCommand="\$topdir/../${mingw_bin_prefix}gcc.exe"
mingw_bin_prefix=x86_64-w64-mingw32-
else
mingw_bin_prefix=
fi
SettingsCCompilerCommand="\$topdir/../mingw/bin/${mingw_bin_prefix}gcc.exe"
SettingsCCompilerFlags="$CONF_CC_OPTS_STAGE2 $CONF_GCC_LINKER_OPTS_STAGE2"
SettingsCCompilerFlags="$CONF_CC_OPTS_STAGE2 $CONF_GCC_LINKER_OPTS_STAGE2"
SettingsArCommand="\$topdir/../
mingw/bin/
${mingw_bin_prefix}ar.exe"
SettingsArCommand="\$topdir/../${mingw_bin_prefix}ar.exe"
SettingsPerlCommand='$topdir/../perl/perl.exe'
SettingsPerlCommand='$topdir/../perl/perl.exe'
SettingsDllWrapCommand="\$topdir/../
mingw/bin/
${mingw_bin_prefix}dllwrap.exe"
SettingsDllWrapCommand="\$topdir/../${mingw_bin_prefix}dllwrap.exe"
SettingsWindresCommand="\$topdir/../
mingw/bin/
${mingw_bin_prefix}windres.exe"
SettingsWindresCommand="\$topdir/../${mingw_bin_prefix}windres.exe"
SettingsTouchCommand='$topdir/touchy.exe'
SettingsTouchCommand='$topdir/touchy.exe'
else
else
SettingsCCompilerCommand="$WhatGccIsCalled"
SettingsCCompilerCommand="$WhatGccIsCalled"
...
...
configure.ac
View file @
7c987d10
...
@@ -315,25 +315,24 @@ then
...
@@ -315,25 +315,24 @@ then
PATH=`pwd`/inplace/mingw/bin:$PATH inplace/mingw/bin/realgcc.exe driver/gcc/gcc.c driver/utils/cwrapper.c driver/utils/getLocation.c -Idriver/utils -o inplace/mingw/bin/gcc.exe
PATH=`pwd`/inplace/mingw/bin:$PATH inplace/mingw/bin/realgcc.exe driver/gcc/gcc.c driver/utils/cwrapper.c driver/utils/getLocation.c -Idriver/utils -o inplace/mingw/bin/gcc.exe
AC_MSG_NOTICE([In-tree mingw tree created])
AC_MSG_NOTICE([In-tree mingw tree created])
fi
fi
mingwbin="$hardtop/inplace/mingw/bin/"
else
else
# NB. If you update the tarballs to a new version of gcc, don't
# NB. If you update the tarballs to a new version of gcc, don't
# forget to tweak the paths in driver/gcc/gcc.c.
# forget to tweak the paths in driver/gcc/gcc.c.
if ! test -d inplace/mingw ||
if ! test -d inplace/mingw ||
test inplace/mingw -ot ghc-tarballs/mingw64/
mingw-w64-bin_*.zip
test inplace/mingw -ot ghc-tarballs/mingw64/
*.tar.bz2
then
then
AC_MSG_NOTICE([Making in-tree mingw tree])
AC_MSG_NOTICE([Making in-tree mingw tree])
rm -rf inplace/mingw
rm -rf inplace/mingw
mkdir inplace/mingw
mkdir inplace/mingw
(
(
cd inplace/mingw &&
cd inplace/mingw &&
unzip ../../ghc-tarballs/mingw64/mingw-w64-bin_*.zip
tar -jxf ../../ghc-tarballs/mingw64/*.tar.bz2
)
)
AC_MSG_NOTICE([In-tree mingw tree created])
AC_MSG_NOTICE([In-tree mingw tree created])
fi
fi
mingwbin="$hardtop/inplace/mingw/bin/x86_64-w64-mingw32-"
fi
fi
mingwbin="$hardtop/inplace/mingw/bin/"
CC="${mingwbin}gcc.exe"
CC="${mingwbin}gcc.exe"
LD="${mingwbin}ld.exe"
LD="${mingwbin}ld.exe"
NM="${mingwbin}nm.exe"
NM="${mingwbin}nm.exe"
...
...
mk/config.mk.in
View file @
7c987d10
...
@@ -627,7 +627,7 @@ endif
...
@@ -627,7 +627,7 @@ endif
ifeq
"$(TARGETPLATFORM)" "i386-unknown-mingw32"
ifeq
"$(TARGETPLATFORM)" "i386-unknown-mingw32"
WINDRES
=
$(INPLACE_MINGW)
/bin/windres
WINDRES
=
$(INPLACE_MINGW)
/bin/windres
else
ifeq
"$(TARGETPLATFORM)" "x86_64-unknown-mingw32"
else
ifeq
"$(TARGETPLATFORM)" "x86_64-unknown-mingw32"
WINDRES
=
$(INPLACE_MINGW)
/bin/
x86_64-w64-mingw32-
windres
WINDRES
=
$(INPLACE_MINGW)
/bin/windres
endif
endif
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
...
@@ -637,7 +637,7 @@ HaveLibMingwEx = @HaveLibMingwEx@
...
@@ -637,7 +637,7 @@ HaveLibMingwEx = @HaveLibMingwEx@
ifeq
"$(TARGETPLATFORM)" "i386-unknown-mingw32"
ifeq
"$(TARGETPLATFORM)" "i386-unknown-mingw32"
DLLTOOL
=
inplace/mingw/bin/dlltool.exe
DLLTOOL
=
inplace/mingw/bin/dlltool.exe
else
ifeq
"$(TARGETPLATFORM)" "x86_64-unknown-mingw32"
else
ifeq
"$(TARGETPLATFORM)" "x86_64-unknown-mingw32"
DLLTOOL
=
inplace/mingw/bin/
x86_64-w64-mingw32-
dlltool.exe
DLLTOOL
=
inplace/mingw/bin/dlltool.exe
endif
endif
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
...
@@ -771,7 +771,7 @@ endif
...
@@ -771,7 +771,7 @@ endif
REAL_SHELL
=
$(SHELL)
REAL_SHELL
=
$(SHELL)
ifeq
"$(TARGETPLATFORM)" "x86_64-unknown-mingw32"
ifeq
"$(TARGETPLATFORM)" "x86_64-unknown-mingw32"
STRIP_CMD
=
$(TOP)
/inplace/mingw/bin/
x86_64-w64-mingw32-
strip.exe
STRIP_CMD
=
$(TOP)
/inplace/mingw/bin/strip.exe
else
else
STRIP_CMD
=
strip
STRIP_CMD
=
strip
endif
endif
...
...
rts/PosixSource.h
View file @
7c987d10
...
@@ -25,6 +25,10 @@
...
@@ -25,6 +25,10 @@
// On both GNU libc and FreeBSD, _ISOC99_SOURCE is implied by
// On both GNU libc and FreeBSD, _ISOC99_SOURCE is implied by
// _XOPEN_SOURCE==600, but on Solaris it is an error to omit it.
// _XOPEN_SOURCE==600, but on Solaris it is an error to omit it.
#define _ISOC99_SOURCE
#define _ISOC99_SOURCE
// Defining __USE_MINGW_ANSI_STDIO is the most portable way to tell
// mingw that we want to use the standard %lld style format specifiers,
// rather than the Windows %I64d style
#define __USE_MINGW_ANSI_STDIO 1
#endif
#endif
#if defined(darwin_HOST_OS)
#if defined(darwin_HOST_OS)
...
...
Write
Preview
Markdown
is supported
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