diff options
author | chak <unknown> | 2000-06-18 12:13:56 +0000 |
---|---|---|
committer | chak <unknown> | 2000-06-18 12:13:56 +0000 |
commit | 4b7199131876dc3af72612a84348b0c03c7849a5 (patch) | |
tree | b0e0c5a4a4026f90ea3320626870afa5f648ed1a /distrib/hc-build | |
parent | 91ef36b9f74a61c0fb0047f3261ce49ed3026e93 (diff) | |
download | haskell-4b7199131876dc3af72612a84348b0c03c7849a5.tar.gz |
[project @ 2000-06-18 12:13:56 by chak]
Script that automates building GHC from .hc files.
?? Shall I edit the corresponding section in building.sgml to advise the use
?? of this script (thus replacing the outdated description of the manual
?? steps - which is wrong anyway).
Diffstat (limited to 'distrib/hc-build')
-rw-r--r-- | distrib/hc-build | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/distrib/hc-build b/distrib/hc-build new file mode 100644 index 0000000000..6fb9f8687a --- /dev/null +++ b/distrib/hc-build @@ -0,0 +1,34 @@ +#/bin/sh + +# Manuel M. T. Chakravarty <chak@acm.org>, June 2000 +# +# 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 +# unpacked). All options are passed through to ./configure (especially +# useful with --prefix). + +configopts="$*" + +# build configuration +# +cat >mk/build.mk <<END +ProjectsToBuild = glafp-utils hslibs ghc +GhcLibHcOpts = -O +SRC_HAPPY_OPTS += -c +GhcLibWays= +END + +# touch happy generated files; so that in non-bootstrapping mode for +# installation, no attempt is made to call happy +# +touch ghc/compiler/rename/ParseIface.hs +touch ghc/compiler/parser/Parser.hs + +echo "*** Building hsc..." +./configure --enable-hc-boot $configopts || exit 1 +make boot all || exit 1 + +echo "*** Building library..." +echo "GhcWithHscBuiltViaC=NO" >>mk/build.mk +make -C ghc/lib clean boot all || exit 1 +make -C hslibs clean boot all |