Commit 135045b2 authored by simonmar's avatar simonmar

[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.
parent d1d6d84f
......@@ -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-*)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment