[project @ 2003-07-23 15:39:54 by simonmar]
authorsimonmar <unknown>
Wed, 23 Jul 2003 15:39:54 +0000 (15:39 +0000)
committersimonmar <unknown>
Wed, 23 Jul 2003 15:39:54 +0000 (15:39 +0000)
GHC/PrimopWrappers.hs fix for BootingFromHc

Makefile

index 72446d9..1edfbb2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 # -----------------------------------------------------------------------------
-# $Id: Makefile,v 1.43 2003/05/30 09:19:39 simonpj Exp $
+# $Id: Makefile,v 1.44 2003/07/23 15:39:54 simonmar Exp $
 
 TOP=..
 include $(TOP)/mk/boilerplate.mk
@@ -57,9 +57,14 @@ SRC_HC_OPTS += -funbox-strict-fields
 # -----------------------------------------------------------------------------
 # PrimOpWrappers
 
+ifeq "$(BootingFromHc)" "YES"
+GHC/PrimopWrappers.hs:
+       touch GHC/PrimopWrappers.hs
+else
 GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt
        @$(RM) $@
        $(GHC_GENPRIMOP) --make-haskell-wrappers < $< > $@
+endif
 
 boot :: GHC/PrimopWrappers.hs