diff options
author | simonmar <unknown> | 2003-07-24 15:12:35 +0000 |
---|---|---|
committer | simonmar <unknown> | 2003-07-24 15:12:35 +0000 |
commit | 135045b28ff8a8d9b0b5f5cce0373387f541f600 (patch) | |
tree | 89a901e368df95601c202439488c31a9de6c44c4 /distrib/hc-build | |
parent | d1d6d84f5f551a9adef99237250e0375a556fa2e (diff) | |
download | haskell-135045b28ff8a8d9b0b5f5cce0373387f541f600.tar.gz |
[project @ 2003-07-24 15:12:35 by simonmar]
Getting closer for GHC 6.x: now gets as far as building a working
compiler from unregisterised HC files.
Diffstat (limited to 'distrib/hc-build')
-rw-r--r-- | distrib/hc-build | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/distrib/hc-build b/distrib/hc-build index ff1291b39b..dd9134adfb 100644 --- a/distrib/hc-build +++ b/distrib/hc-build @@ -26,16 +26,18 @@ fi # build configuration # -cat >mk/build.mk <<END -# nothing! -END - -# touch happy generated files; so that in non-bootstrapping mode for -# installation, no attempt is made to call happy -# -touch ghc/compiler/parser/Parser.hs -touch ghc/compiler/main/ParsePkgConf.hs -touch hslibs/hssource/HsParser.hs +case configopts in +*--enable-hc-boot-unregisterised*) + cat >mk/build.mk <<END + GhcWithInterpreter=NO + GhcWithNativeCodeGen=NO + END + ;; +*) + cat >mk/build.mk <<END + # empty + END +esac echo "*** Building compiler..." ./configure --enable-hc-boot $configopts @@ -43,7 +45,6 @@ echo "*** Building compiler..." $MAKE -C glafp-utils boot all $MAKE -C ghc boot $MAKE -C libraries boot all -$MAKE -C hslibs boot all $MAKE -C ghc all MAKEFLAGS= @@ -82,11 +83,13 @@ $MAKE -C ghc/rts boot && $MAKE -C ghc/rts all # Now build a new set of libraries $MAKE -C libraries boot all -$MAKE -C hslibs boot all -# Finally build all of ghc/utils +# Build all of ghc/utils $MAKE -C ghc/utils clean && $MAKE -C ghc/utils boot all +# Now we can build hslibs (hsc2hs is required, so must be after ghc/utils) +$MAKE -C hslibs boot all + # Avoid relinking the compiler during 'make install': (cd ghc/compiler; touch parser/hschooks.o ghc-*) |