[project @ 2002-11-18 10:03:24 by simonmar]
authorsimonmar <unknown>
Mon, 18 Nov 2002 10:03:24 +0000 (10:03 +0000)
committersimonmar <unknown>
Mon, 18 Nov 2002 10:03:24 +0000 (10:03 +0000)
Use -fvia-C when compiling with 4.08.x

ghc/compiler/Makefile

index 766ded7..bc2191e 100644 (file)
@@ -355,6 +355,11 @@ ifeq "$(bootstrapped)" "YES"
 utils/Binary_HC_OPTS           = -funbox-strict-fields
 endif
 
+# 4.08.2's NCG can't cope with Binary
+ifeq "$(compiling_with_4xx)" "YES"
+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