diff options
author | simonmar <unknown> | 2001-03-27 11:38:19 +0000 |
---|---|---|
committer | simonmar <unknown> | 2001-03-27 11:38:19 +0000 |
commit | 81e3aa0f6ace5e28f1edbad81a5b9f9c6a211967 (patch) | |
tree | 4989ee377882e4520183d049cc0aa06b7303d60f /distrib/hc-build | |
parent | e55fe97cb8fe1a6357301ac9b3f659911f410fb6 (diff) | |
download | haskell-81e3aa0f6ace5e28f1edbad81a5b9f9c6a211967.tar.gz |
[project @ 2001-03-27 11:38:19 by simonmar]
updates to work with GHC 5, I hope...
Diffstat (limited to 'distrib/hc-build')
-rw-r--r-- | distrib/hc-build | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/distrib/hc-build b/distrib/hc-build index 91c0deb951..f0ad9dc544 100644 --- a/distrib/hc-build +++ b/distrib/hc-build @@ -1,6 +1,7 @@ -#!/bin/sh +#!/bin/sh -e # Manuel M. T. Chakravarty <chak@acm.org>, June 2000 +# Updated for GHC 5.00, Simon Marlow, March 2001 # # Script to build GHC from .hc files (must be run in the fptools/ root # directory into which the source and .hc files must already have been @@ -24,10 +25,7 @@ fi # build configuration # cat >mk/build.mk <<END -ProjectsToBuild = glafp-utils hslibs ghc -GhcLibHcOpts = -O -SRC_HAPPY_OPTS += -c -GhcLibWays= +# nothing! END # touch happy generated files; so that in non-bootstrapping mode for @@ -35,12 +33,20 @@ END # touch ghc/compiler/rename/ParseIface.hs touch ghc/compiler/parser/Parser.hs +touch ghc/compiler/main/ParsePkgConf.hs echo "*** Building hsc..." -./configure --enable-hc-boot $configopts || exit 1 -$MAKE boot all || exit 1 +./configure --enable-hc-boot $configopts +$MAKE -C ghc boot +$MAKE -C hslibs boot all +$MAKE -C ghc all -echo "*** Building library..." -echo "GhcWithHscBuiltViaC=NO" >>mk/build.mk -$MAKE -C ghc/lib clean boot all || exit 1 -$MAKE -C hslibs clean boot all +echo "*** Building libraries..." +./configure + +# clean in ghc/lib, but avoid removing hsc2hs-generated .hs files +$MAKE -C ghc/lib clean HSC_SRCS="" +$MAKE -C ghc/lib boot all + +$MAKE -C hslibs clean boot all +$MAKE -C ghc/utils clean boot all |