[project @ 2003-02-20 12:59:55 by simonpj]
authorsimonpj <unknown>
Thu, 20 Feb 2003 12:59:55 +0000 (12:59 +0000)
committersimonpj <unknown>
Thu, 20 Feb 2003 12:59:55 +0000 (12:59 +0000)
Compile binary stuff with -O always

ghc/compiler/Makefile

index 958e96c..3440b84 100644 (file)
@@ -380,8 +380,14 @@ utils/Binary_HC_OPTS               += -fvia-C
 endif
 
 # ByteCodeItbls uses primops that the NCG doesn't support yet.
-ghci/ByteCodeItbls_HC_OPTS     = -fvia-C
-ghci/ByteCodeLink_HC_OPTS      = -fvia-C -monly-3-regs
+ghci/ByteCodeItbls_HC_OPTS     += -fvia-C
+ghci/ByteCodeLink_HC_OPTS      += -fvia-C -monly-3-regs
+
+# BinIface and Binary take ages to both compile and run if you don's use -O
+main/BinIface_HC_OPTS          += -O
+utils/Binary_HC_OPTS           += -O
+utils/FastMutInt_HC_OPTS       += -O
+
 
 # CSE interacts badly with top-level IORefs (reportedly in DriverState and
 # DriverMkDepend), causing some of them to be commoned up.  We have a fix for