update submodules for GHC.HetMet.GArrow -> Control.GArrow renaming
[ghc-hetmet.git] / distrib / hc-build
index bd9c77b..43133f8 100644 (file)
@@ -29,10 +29,12 @@ fi
 case "$configopts" in
 *--enable-hc-boot-unregisterised*)
 cat >>mk/build.mk <<END
+GhcUnregisterised=YES
 GhcWithInterpreter=NO
 GhcWithNativeCodeGen=NO
 SplitObjs=NO
 GhcLibWays=
+GhcWithSMP=NO
 END
 ;;
 
@@ -46,7 +48,11 @@ esac
 echo "*** Building compiler..."
 ./configure --enable-hc-boot $configopts
 
+# ToDo: figure out the minimal correct sequence here
 $MAKE -C utils/mkdependC boot all
+$MAKE -C utils/unlit boot all
+$MAKE -C utils/mkdirhier boot all
+$MAKE -C driver/mangler boot all
 $MAKE -C includes boot all
 $MAKE -C rts boot all
 $MAKE -C libraries boot all GhcBootLibs=YES
@@ -101,6 +107,8 @@ $MAKE -C libraries boot all
 # The reconfigure step updates a few files, which can lead to
 # unnecessary recompilations.  Touch a bunch of things here to avoid
 # having to recompile stuff that we've already built.
-(cd compiler; touch $PRIMOP_BITS parser/hschooks.o prelude/PrimOp.o main/Config.hs main/Config.o ghc-*)
+(cd compiler; touch main/Config.hs $PRIMOP_BITS stage1/*/*.o stage1/ghc-* ghc-*)
+
+echo hc-build done
+echo The tree should be safe to do 'make install stage=1' in.
 
-# At this point, the tree should be safe to do 'make install' in.