Skip to content
Snippets Groups Projects
Commit 9c57bb32 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1999-10-05 10:22:40 by simonmar]

--with-ghc-hc is now --with-hc (to be used as the "locally installed
Haskell compiler" for all projects).
parent 1d82f4b2
No related branches found
No related tags found
No related merge requests found
...@@ -308,16 +308,16 @@ dnl use either is considered a Feature. ...@@ -308,16 +308,16 @@ dnl use either is considered a Feature.
dnl ** What command to use to compile compiler sources ? dnl ** What command to use to compile compiler sources ?
dnl -------------------------------------------------------------- dnl --------------------------------------------------------------
AC_ARG_WITH(ghc-hc, AC_ARG_WITH(hc,
[ --with-ghc-hc=<haskell compiler> [ --with-hc=<haskell compiler>
Use a command different from 'ghc-2.10' to compile up the GHC compiler sources. Use a command different from 'ghc' to compile up Haskell code.
(no claims currently made that this will work with a compiler other than a (no claims currently made that this will work with a compiler other than a
recent version of GHC, but you could always try...) recent version of GHC, but you could always try...)
], ],
[WithGhcHc="$withval"], [WithHc="$withval"],
[WithGhcHc="ghc"] [WithHc="ghc"]
) )
AC_SUBST(WithGhcHc) AC_SUBST(WithHc)
dnl ** Which gcc to use? dnl ** Which gcc to use?
dnl -------------------------------------------------------------- dnl --------------------------------------------------------------
......
...@@ -147,7 +147,7 @@ IncludeTestDirsInBuild=NO ...@@ -147,7 +147,7 @@ IncludeTestDirsInBuild=NO
# HC_ROJEMO_NHC # HC_ROJEMO_NHC
# HC_UNSPECIFIED # HC_UNSPECIFIED
WithGhcHc = @WithGhcHc@ WithGhcHc = @WithHc@
# Variable which is set to the version number of the $(WithGhcHc) we're using. # Variable which is set to the version number of the $(WithGhcHc) we're using.
# Not currently used, but might come in handy sometime soon. # Not currently used, but might come in handy sometime soon.
...@@ -160,11 +160,9 @@ GhcCompilerWays= ...@@ -160,11 +160,9 @@ GhcCompilerWays=
# Extra option flags to pass to the compiler that compiles the compiler # Extra option flags to pass to the compiler that compiles the compiler
# (Ones that are essential are wired into ghc/compiler/Makefile) # (Ones that are essential are wired into ghc/compiler/Makefile)
# Typical ones: # Typical ones:
# -H25m allocate a bigger heap (default is 6m) # -H25m allocate a bigger heap (might speed up compilation)
# #
# -O compile an optimised compiler # -O compile an optimised compiler
# NB! If you add -O you'll almost certainly need to increase
# the amount of heap space too (to 15m or more)
# #
# -DDEBUG include consistency/assertion checks in the compiled compiler # -DDEBUG include consistency/assertion checks in the compiled compiler
# #
...@@ -259,7 +257,7 @@ EnableWin32DLLs=@EnableWin32DLLs@ ...@@ -259,7 +257,7 @@ EnableWin32DLLs=@EnableWin32DLLs@
################################################################################# #################################################################################
# The compiler you'd like to use to compile Happy # The compiler you'd like to use to compile Happy
WithHappyHc = $(WithGhcHc) WithHappyHc = @WithHc@
# HappyHcOpts gives the flags to pass to the Haskell compiler used # HappyHcOpts gives the flags to pass to the Haskell compiler used
# to compile the Happy sources with. # to compile the Happy sources with.
...@@ -469,6 +467,7 @@ HSTAGS_PREFIX = $(FPTOOLS_TOP)/ghc/utils/hstags/ ...@@ -469,6 +467,7 @@ HSTAGS_PREFIX = $(FPTOOLS_TOP)/ghc/utils/hstags/
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Haskell compiler and mkdependHS # Haskell compiler and mkdependHS
# ToDo: $(HC) should be a local installation of some Haskell compiler
HC = $(FPTOOLS_TOP)/ghc/driver/ghc HC = $(FPTOOLS_TOP)/ghc/driver/ghc
MKDEPENDHS = $(HC) MKDEPENDHS = $(HC)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment