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
jberryman
GHC
Commits
0f183f73
Commit
0f183f73
authored
Mar 14, 2010
by
Ian Lynagh
Browse files
When compiling with GHC >= 6.13, use -rtsopts
parent
63dd4db6
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
0f183f73
...
...
@@ -129,9 +129,11 @@ if test "$WithGhc" != ""; then
FP_COMPARE_VERSIONS($GhcVersion,[-ge],[6.10.2],
[ghc_ge_6102=YES], [ghc_ge_6102=NO])
if test $GhcCanonVersion -ge 611; then ghc_ge_611=YES; else ghc_ge_611=NO; fi
if test $GhcCanonVersion -ge 613; then ghc_ge_613=YES; else ghc_ge_613=NO; fi
AC_SUBST(ghc_ge_609)dnl
AC_SUBST(ghc_ge_6102)dnl
AC_SUBST(ghc_ge_611)dnl
AC_SUBST(ghc_ge_613)dnl
fi
dnl ** Must have GHC to build GHC, unless --enable-hc-boot is on
...
...
mk/config.mk.in
View file @
0f183f73
...
...
@@ -496,9 +496,11 @@ GhcPatchLevel = @GhcPatchLevel@
GhcMajVersion
=
@GhcMajVersion@
GhcMinVersion
=
@GhcMinVersion@
# Keep this in sync with the variables in package-config.mk
ghc_ge_609
=
@ghc_ge_609@
ghc_ge_6102
=
@ghc_ge_6102@
ghc_ge_611
=
@ghc_ge_611@
ghc_ge_613
=
@ghc_ge_613@
# Canonicalised ghc version number, used for easy (integer) version
# comparisons. We must expand $(GhcMinVersion) to two digits by
...
...
rules/package-config.mk
View file @
0f183f73
...
...
@@ -18,6 +18,9 @@ $1_$2_HC = $$(GHC_STAGE$3)
# configuration stuff that depends on which GHC we're building with
ifeq
"$3" "0"
$1_$2_ghc_ge_609
=
$
$(ghc_ge_609)
$1_$2_ghc_ge_6102
=
$
$(ghc_ge_6102)
$1_$2_ghc_ge_611
=
$
$(ghc_ge_611)
$1_$2_ghc_ge_613
=
$
$(ghc_ge_613)
$1_$2_HC_CONFIG
=
$
$(GHC_STAGE0)
$1_$2_HC_CONFIG_DEP
=
$1_$2_GHC_PKG
=
$
$(GHC_PKG)
...
...
@@ -30,8 +33,14 @@ $1_$2_HC_DEP =
$1_$2_HC_PKGCONF
=
-package-conf
$
$(BOOTSTRAPPING_CONF)
$1_$2_GHC_PKG_OPTS
=
--package-conf
=
$
$(BOOTSTRAPPING_CONF)
$1_$2_CONFIGURE_OPTS
+=
--package-db
=
$
$(TOP)
/
$
$(BOOTSTRAPPING_CONF)
ifeq
"$(ghc_ge_613)" "YES"
$1_$2_HC_OPTS
+=
-rtsopts
endif
else
$1_$2_ghc_ge_609
=
YES
$1_$2_ghc_ge_6102
=
YES
$1_$2_ghc_ge_611
=
YES
$1_$2_ghc_ge_613
=
YES
$1_$2_HC_PKGCONF
=
$1_$2_HC_CONFIG
=
$
$(TOP)
/
$
$(DUMMY_GHC_INPLACE)
$1_$2_HC_CONFIG_DEP
=
$
$(DUMMY_GHC_INPLACE)
...
...
@@ -44,6 +53,7 @@ $1_$2_HC_MK_DEPEND = $$(GHC_STAGE1)
$1_$2_HC_MK_DEPEND_DEP
=
$$
(
$1_$2_HC_MK_DEPEND
)
$1_$2_HC_DEP
=
$$
(
$1_$2_HC
)
$1_$2_HC_OPTS
+=
-no-user-package-conf
$1_$2_HC_OPTS
+=
-rtsopts
endif
# Useful later
...
...
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